From bbc1259b80f4f7ec599a4b7b5310e0990436ced7 Mon Sep 17 00:00:00 2001 From: Sarangan Rajamanickam Date: Tue, 17 Oct 2017 13:38:00 -0700 Subject: [PATCH 1/6] Multiple Upgrades to the SDK: 1. Combined all the profiles json files to one file 2. Bug fix to include azure_sdk in build and release process 3. Removed all the relative paths. 4. Split the rollup and individual templates to get a cleaner code 5. Cleaned up Rakefile --- Rakefile | 145 +- azure_sdk/spec/azure_sdk_spec.rb | 114 +- .../profilegen/src/profile_generator.rb | 21 +- .../src/profile_generator_client.rb | 5 +- .../src/profile_generator_options_parser.rb | 17 +- .../profilegen/src/profile_template_files.rb | 14 +- .../profilegen/src/profile_templates.rb | 25 +- .../src/resources/dir_metadata.json | 116 +- .../individual/client_template.template | 35 + .../module_definition_template.template | 9 + .../{ => individual}/module_template.template | 15 - .../{ => rollup}/client_template.template | 23 - .../module_definition_template.template | 7 - .../templates/rollup/module_template.template | 56 + .../src/require_file_generator.rb | 30 +- .../require_file_generator_options_parser.rb | 7 +- profile_specs/analysis_services_profiles.json | 12 - profile_specs/authorization_profiles.json | 12 - profile_specs/automation_profiles.json | 12 - profile_specs/batch_profiles.json | 12 - profile_specs/billing_profiles.json | 12 - profile_specs/cdn_profiles.json | 12 - .../cognitive_services_profiles.json | 12 - profile_specs/commerce_profiles.json | 12 - profile_specs/compute_profiles.json | 22 - profile_specs/consumption_profiles.json | 12 - .../container_instance_profiles.json | 12 - .../container_registry_profiles.json | 12 - profile_specs/container_service_profiles.json | 12 - profile_specs/customer_insights_profiles.json | 12 - .../datalake_analytics_profiles.json | 12 - profile_specs/datalake_store_profiles.json | 12 - profile_specs/devtestlabs_profiles.json | 12 - profile_specs/dns_profiles.json | 12 - profile_specs/event_grid_profiles.json | 12 - profile_specs/event_hub_profiles.json | 12 - profile_specs/features_profiles.json | 22 - profile_specs/graph_profiles.json | 12 - profile_specs/iot_hub_profiles.json | 12 - profile_specs/key_vault_profiles.json | 12 - profile_specs/links_profiles.json | 22 - profile_specs/locks_profiles.json | 22 - profile_specs/logic_profiles.json | 12 - profile_specs/machine_learning_profiles.json | 12 - .../managed_applications_profiles.json | 12 - .../marketplace_ordering_profiles.json | 12 - profile_specs/media_services_profiles.json | 12 - profile_specs/mobile_engagement_profiles.json | 12 - profile_specs/monitor_profiles.json | 15 - profile_specs/network_profiles.json | 22 - profile_specs/notification_hubs_profiles.json | 12 - .../operational_insights_profiles.json | 13 - profile_specs/policy_profiles.json | 23 - profile_specs/powerbi_embedded_profiles.json | 12 - profile_specs/profiles.json | 1317 +++++++++++++---- .../recovery_services_backup_profiles.json | 14 - profile_specs/recovery_services_profiles.json | 13 - ...overy_services_site_recovery_profiles.json | 12 - profile_specs/redis_profiles.json | 12 - profile_specs/relay_profiles.json | 12 - .../resources_management_profiles.json | 12 - profile_specs/resources_profiles.json | 22 - profile_specs/scheduler_profiles.json | 12 - profile_specs/search_profiles.json | 12 - profile_specs/server_management_profiles.json | 12 - profile_specs/service_bus_profiles.json | 12 - profile_specs/service_fabric_profiles.json | 12 - profile_specs/sql_profiles.json | 14 - .../stor_simple8000_series_profiles.json | 12 - profile_specs/storage_profiles.json | 22 - profile_specs/stream_analytics_profiles.json | 12 - profile_specs/subscriptions_profiles.json | 22 - profile_specs/traffic_manager_profiles.json | 13 - profile_specs/web_profiles.json | 16 - 74 files changed, 1348 insertions(+), 1397 deletions(-) create mode 100644 generators/profilegen/src/resources/templates/individual/client_template.template create mode 100644 generators/profilegen/src/resources/templates/individual/module_definition_template.template rename generators/profilegen/src/resources/templates/{ => individual}/module_template.template (82%) rename generators/profilegen/src/resources/templates/{ => rollup}/client_template.template (68%) rename generators/profilegen/src/resources/templates/{ => rollup}/module_definition_template.template (64%) create mode 100644 generators/profilegen/src/resources/templates/rollup/module_template.template delete mode 100644 profile_specs/analysis_services_profiles.json delete mode 100644 profile_specs/authorization_profiles.json delete mode 100644 profile_specs/automation_profiles.json delete mode 100644 profile_specs/batch_profiles.json delete mode 100644 profile_specs/billing_profiles.json delete mode 100644 profile_specs/cdn_profiles.json delete mode 100644 profile_specs/cognitive_services_profiles.json delete mode 100644 profile_specs/commerce_profiles.json delete mode 100644 profile_specs/compute_profiles.json delete mode 100644 profile_specs/consumption_profiles.json delete mode 100644 profile_specs/container_instance_profiles.json delete mode 100644 profile_specs/container_registry_profiles.json delete mode 100644 profile_specs/container_service_profiles.json delete mode 100644 profile_specs/customer_insights_profiles.json delete mode 100644 profile_specs/datalake_analytics_profiles.json delete mode 100644 profile_specs/datalake_store_profiles.json delete mode 100644 profile_specs/devtestlabs_profiles.json delete mode 100644 profile_specs/dns_profiles.json delete mode 100644 profile_specs/event_grid_profiles.json delete mode 100644 profile_specs/event_hub_profiles.json delete mode 100644 profile_specs/features_profiles.json delete mode 100644 profile_specs/graph_profiles.json delete mode 100644 profile_specs/iot_hub_profiles.json delete mode 100644 profile_specs/key_vault_profiles.json delete mode 100644 profile_specs/links_profiles.json delete mode 100644 profile_specs/locks_profiles.json delete mode 100644 profile_specs/logic_profiles.json delete mode 100644 profile_specs/machine_learning_profiles.json delete mode 100644 profile_specs/managed_applications_profiles.json delete mode 100644 profile_specs/marketplace_ordering_profiles.json delete mode 100644 profile_specs/media_services_profiles.json delete mode 100644 profile_specs/mobile_engagement_profiles.json delete mode 100644 profile_specs/monitor_profiles.json delete mode 100644 profile_specs/network_profiles.json delete mode 100644 profile_specs/notification_hubs_profiles.json delete mode 100644 profile_specs/operational_insights_profiles.json delete mode 100644 profile_specs/policy_profiles.json delete mode 100644 profile_specs/powerbi_embedded_profiles.json delete mode 100644 profile_specs/recovery_services_backup_profiles.json delete mode 100644 profile_specs/recovery_services_profiles.json delete mode 100644 profile_specs/recovery_services_site_recovery_profiles.json delete mode 100644 profile_specs/redis_profiles.json delete mode 100644 profile_specs/relay_profiles.json delete mode 100644 profile_specs/resources_management_profiles.json delete mode 100644 profile_specs/resources_profiles.json delete mode 100644 profile_specs/scheduler_profiles.json delete mode 100644 profile_specs/search_profiles.json delete mode 100644 profile_specs/server_management_profiles.json delete mode 100644 profile_specs/service_bus_profiles.json delete mode 100644 profile_specs/service_fabric_profiles.json delete mode 100644 profile_specs/sql_profiles.json delete mode 100644 profile_specs/stor_simple8000_series_profiles.json delete mode 100644 profile_specs/storage_profiles.json delete mode 100644 profile_specs/stream_analytics_profiles.json delete mode 100644 profile_specs/subscriptions_profiles.json delete mode 100644 profile_specs/traffic_manager_profiles.json delete mode 100644 profile_specs/web_profiles.json diff --git a/Rakefile b/Rakefile index d02bc72bf4..ec1eb07faa 100644 --- a/Rakefile +++ b/Rakefile @@ -20,6 +20,8 @@ require 'json' require 'fileutils' version = File.read(File.expand_path('../ARM_VERSION', __FILE__)).strip +GEMS_TO_IGNORE = ['azure_mgmt_insights'] +REGEN_EXCLUDES = ['azure_sdk'] desc 'Azure Resource Manager related tasks which often traverse each of the arm gems' namespace :arm do @@ -72,7 +74,6 @@ namespace :arm do desc 'Regen code for each sdk with all its api versions' task :regen => :clean_generated do json = get_config_file - REGEN_EXCLUDES = ['azure_sdk'] each_gem do |dir| # dir corresponds to each azure_mgmt_* folder unless REGEN_EXCLUDES.include?(dir.to_s) puts "\nGenerating #{dir}\n" @@ -145,14 +146,16 @@ namespace :arm do desc 'Clean Individual Profiles' task :clean_individual_profiles do - Dir.chdir(File.expand_path('../management', __FILE__)) - gem_folders = Dir['*'].reject{|o| not File.directory?(o)} - gem_folders.each do |gem| - Dir.chdir(File.expand_path("../management/#{gem}/lib/profiles", __FILE__)) + each_gem_dir do |gem| + if REGEN_EXCLUDES.include?gem + next + end + + Dir.chdir("#{__dir__}/management/#{gem}/lib/profiles") subdir_list = Dir['*'].reject{|o| not File.directory?(o)} subdir_list.each do |subdir| if subdir.to_s != 'common' - folder_to_be_cleaned = File.expand_path("../management/#{gem}/lib/profiles/#{subdir}", __FILE__) + folder_to_be_cleaned = "#{__dir__}/management/#{gem}/lib/profiles/#{subdir}" puts "Cleaning folder - #{folder_to_be_cleaned}" FileUtils.rm_rf(folder_to_be_cleaned) end @@ -167,37 +170,36 @@ namespace :arm do desc 'Regen rollup profiles' task :regen_rollup_profile => :clean_rollup_profiles do - Dir.chdir(File.expand_path('../generators/profilegen/src', __FILE__)) + Dir.chdir(__dir__) # Sample Command - # bundle exec ruby profile_generator_client.rb --dir_metadata=dir_metadata.json --profile=profiles.json - command = "#{get_base_profile_generation_cmd}#{get_profile_spec_files_folder}/#{PROFILE_METADATA[:azure_sdk]}" + # bundle exec ruby profile_generator_client.rb --dir_metadata=dir_metadata.json --profile=profiles.json --mode=rollup --key=azure_sdk + command = "#{get_base_profile_generation_cmd} --dir_metadata=#{__dir__}/generators/profilegen/src/resources/dir_metadata.json --profile=#{get_profile_spec_files_folder}/profiles.json --mode=rollup --key=azure_sdk --sdk_path=#{__dir__}" execute_and_stream(command) end desc 'Regen individual profiles' task :regen_individual_profiles => :clean_individual_profiles do - Dir.chdir(File.expand_path('../generators/profilegen/src', __FILE__)) - PROFILE_METADATA.each do |sdk, profile_spec_file| - if(sdk.to_s != 'azure_sdk') - # Sample Command - # bundle exec ruby profile_generator_client.rb --dir_metadata=dir_metadata.json --profile=authorization_profiles.json - command = "#{get_base_profile_generation_cmd}#{get_profile_spec_files_folder}/#{profile_spec_file}" - execute_and_stream(command) + each_gem_dir do |gem| + if REGEN_EXCLUDES.include?gem + next end + + # Sample Command + # bundle exec ruby profile_generator_client.rb --dir_metadata=dir_metadata.json --profile=authorization_profiles.json --mode=management --key=azure_mgmt_authorization + command = "#{get_base_profile_generation_cmd} --dir_metadata=#{__dir__}/generators/profilegen/src/resources/dir_metadata.json --profile=#{get_profile_spec_files_folder}/profiles.json --mode=management --key=#{gem} --sdk_path=#{__dir__}" + execute_and_stream(command) end end desc 'Generate individual require files' task :regen_individual_require_files do - Dir.chdir(File.expand_path('../generators/requirefilegen/src', __FILE__)) - command = 'bundle exec ruby require_file_generator.rb --mode=individual' + command = "bundle exec ruby #{__dir__}/generators/requirefilegen/src/require_file_generator.rb --mode=individual --sdk_path=#{__dir__}" execute_and_stream(command) end desc 'Generate rollup require files' task :regen_rollup_require_files do - Dir.chdir(File.expand_path('../generators/requirefilegen/src', __FILE__)) - command = 'bundle exec ruby require_file_generator.rb --mode=rollup' + command = "bundle exec ruby #{__dir__}/generators/requirefilegen/src/require_file_generator.rb --mode=rollup --sdk_path=#{__dir__}" execute_and_stream(command) end @@ -223,13 +225,11 @@ end task :default => :spec def get_base_profile_generation_cmd - cmd = 'bundle exec ruby profile_generator_client.rb' - dir_metadata = "--dir_metadata=#{File.expand_path('../generators/profilegen/src/resources/dir_metadata.json', __FILE__)}" - "#{cmd} #{dir_metadata} --profile=" + "bundle exec ruby #{__dir__}/generators/profilegen/src/profile_generator_client.rb" end def get_profile_spec_files_folder - File.expand_path('../profile_specs', __FILE__) + "#{__dir__}/profile_specs" end def execute_and_stream(cmd) @@ -255,90 +255,37 @@ def get_config_file JSON.parse(config_file) end +def each_gem_dir + Dir.chdir("#{__dir__}/management") + subdir_list = Dir['*'].reject{|o| not File.directory?(o)} + subdir_list.each do |subdir| + if GEMS_TO_IGNORE.include?subdir + next + end + + yield subdir + end +end + def each_child - top_level_dirs = Dir.entries('./').select { |f| File.directory?(f) and !(f =='.' || f == '..') } - management_level_dirs = Dir.entries('management/.').select { |f| File.directory?("management/#{f}") and !(f =='.' || f == '..') } - management_level_dirs.map! {|management_level_dir| "management/#{management_level_dir}"} - dirs = top_level_dirs.concat(management_level_dirs) - dirs.each do |dir| + Dir.chdir(File.expand_path('../management', __FILE__)) + management_level_dirs = Dir['*'].reject{|o| not File.directory?(o)} + management_level_dirs.each do |dir| + if GEMS_TO_IGNORE.include?dir + next + end Dir.chdir(dir) do yield(dir) end end + + Dir.chdir(File.expand_path('../azure_sdk', __FILE__)) + yield('azure_sdk') end def each_gem each_child do |dir| gem_dir = dir.split('/').last - if get_config_file.has_key?(gem_dir) - yield gem_dir - end + yield gem_dir end end - -REGEN_METADATA = { - azure_sdk: { - version: version - } -} - -PROFILE_METADATA = { - azure_sdk: 'profiles.json', - azure_mgmt_analysis_services: 'analysis_services_profiles.json', - azure_mgmt_authorization: 'authorization_profiles.json', - azure_mgmt_automation: 'automation_profiles.json', - azure_mgmt_batch: 'batch_profiles.json', - azure_mgmt_billing: 'billing_profiles.json', - azure_mgmt_cdn: 'cdn_profiles.json', - azure_mgmt_cognitive_services: 'cognitive_services_profiles.json', - azure_mgmt_commerce: 'commerce_profiles.json', - azure_mgmt_compute: 'compute_profiles.json', - azure_mgmt_consumption: 'consumption_profiles.json', - azure_mgmt_container_instance: 'container_instance_profiles.json', - azure_mgmt_container_registry: 'container_registry_profiles.json', - azure_mgmt_container_service: 'container_service_profiles.json', - azure_mgmt_customer_insights: 'customer_insights_profiles.json', - azure_mgmt_datalake_analytics: 'datalake_analytics_profiles.json', - azure_mgmt_datalake_store: 'datalake_store_profiles.json', - azure_mgmt_devtestlabs: 'devtestlabs_profiles.json', - azure_mgmt_dns: 'dns_profiles.json', - azure_mgmt_event_grid: 'event_grid_profiles.json', - azure_mgmt_event_hub: 'event_hub_profiles.json', - azure_mgmt_features: 'features_profiles.json', - azure_mgmt_graph: 'graph_profiles.json', - azure_mgmt_iot_hub: 'iot_hub_profiles.json', - azure_mgmt_key_vault: 'key_vault_profiles.json', - azure_mgmt_links: 'links_profiles.json', - azure_mgmt_locks: 'locks_profiles.json', - azure_mgmt_logic: 'logic_profiles.json', - azure_mgmt_machine_learning: 'machine_learning_profiles.json', - azure_mgmt_managed_applications: 'managed_applications_profiles.json', - azure_mgmt_marketplace_ordering: 'marketplace_ordering_profiles.json', - azure_mgmt_media_services: 'media_services_profiles.json', - azure_mgmt_mobile_engagement: 'mobile_engagement_profiles.json', - azure_mgmt_monitor: 'monitor_profiles.json', - azure_mgmt_network: 'network_profiles.json', - azure_mgmt_notification_hubs: 'notification_hubs_profiles.json', - azure_mgmt_operational_insights: 'operational_insights_profiles.json', - azure_mgmt_policy: 'policy_profiles.json', - azure_mgmt_powerbi_embedded: 'powerbi_embedded_profiles.json', - azure_mgmt_recovery_services: 'recovery_services_profiles.json', - azure_mgmt_recovery_services_backup: 'recovery_services_backup_profiles.json', - azure_mgmt_recovery_services_site_recovery: 'recovery_services_site_recovery_profiles.json', - azure_mgmt_redis: 'redis_profiles.json', - azure_mgmt_relay: 'relay_profiles.json', - azure_mgmt_resources: 'resources_profiles.json', - azure_mgmt_resources_management: 'resources_management_profiles.json', - azure_mgmt_scheduler: 'scheduler_profiles.json', - azure_mgmt_search: 'search_profiles.json', - azure_mgmt_server_management: 'server_management_profiles.json', - azure_mgmt_service_bus: 'service_bus_profiles.json', - azure_mgmt_service_fabric: 'service_fabric_profiles.json', - azure_mgmt_sql: 'sql_profiles.json', - azure_mgmt_stor_simple8000_series: 'stor_simple8000_series_profiles.json', - azure_mgmt_storage: 'storage_profiles.json', - azure_mgmt_stream_analytics: 'stream_analytics_profiles.json', - azure_mgmt_subscriptions: 'subscriptions_profiles.json', - azure_mgmt_traffic_manager: 'traffic_manager_profiles.json', - azure_mgmt_web: 'web_profiles.json' -} diff --git a/azure_sdk/spec/azure_sdk_spec.rb b/azure_sdk/spec/azure_sdk_spec.rb index f8e5d77fb7..15d37fe434 100644 --- a/azure_sdk/spec/azure_sdk_spec.rb +++ b/azure_sdk/spec/azure_sdk_spec.rb @@ -19,95 +19,71 @@ :subscription_id => @subscription_id, :active_directory_settings => @active_directory_settings } - end - - after(:each) do - Azure::ARM.client.reset! + @credentials = MsRest::TokenCredentials.new( + MsRestAzure::ApplicationTokenProvider.new( + @tenant_id, @client_id, @client_secret, @active_directory_settings)) + @options = { + credentials: @credentials, + subscription_id: @subscription_id + } end it 'should initialize with client constructor' do - arm_client = Azure::ARM.client(@minimum_valid_options) + arm_client = Azure::Profiles::Latest::Mgmt::Client.new(@options) verify_client_defaults(arm_client) verify_management_clients(arm_client) end it 'should initialize by defaulting to ENV' do - arm_client = Azure::ARM.client() + arm_client = Azure::Profiles::Latest::Mgmt::Client.new expect(arm_client).not_to be_nil - expect(arm_client).to be_instance_of(Azure::ARM::Client) - expect(arm_client.tenant_id).to eq(ENV['AZURE_TENANT_ID']) - expect(arm_client.client_id).to eq(ENV['AZURE_CLIENT_ID']) - expect(arm_client.client_secret).to eq(ENV['AZURE_CLIENT_SECRET']) - expect(arm_client.subscription_id).to eq(ENV['AZURE_SUBSCRIPTION_ID']) + expect(arm_client).to be_instance_of(Azure::Profiles::Latest::Mgmt::Client) expect(arm_client.credentials).to be_kind_of(MsRest::ServiceClientCredentials) verify_management_clients(arm_client) end - it 'should initialize with credentials and subscription id' do - Azure::ARM.credentials = MsRest::TokenCredentials.new(MsRestAzure::ApplicationTokenProvider.new( - @tenant_id, @client_id, @client_secret, @active_directory_settings)) - Azure::ARM.subscription_id = @subscription_id - - verify_management_clients(Azure::ARM) - expect(Azure::ARM.credentials).to eq(Azure::ARM.credentials) - end - - it 'should return same client when options are same' do - arm_client = Azure::ARM.client(@minimum_valid_options) - arm_client_again = Azure::ARM.client(@minimum_valid_options) - expect(arm_client).to eq(arm_client_again) - expect(arm_client.options).to eq(arm_client_again.options) - expect(arm_client.compute).to eq(arm_client_again.compute) - end - def verify_client_defaults(arm_client) expect(arm_client).not_to be_nil - expect(arm_client).to be_instance_of(Azure::ARM::Client) - expect(arm_client.tenant_id).to eq(@tenant_id) - expect(arm_client.client_id).to eq(@client_id) - expect(arm_client.client_secret).to eq(@client_secret) - expect(arm_client.subscription_id).to eq(@subscription_id) + expect(arm_client).to be_instance_of(Azure::Profiles::Latest::Mgmt::Client) expect(arm_client.credentials).to be_kind_of(MsRest::ServiceClientCredentials) end def verify_management_clients(arm_client) expect(arm_client).not_to be_nil - expect(arm_client.authorization).to be_instance_of(Azure::ARM::Authorization::AuthorizationManagementClient) - expect(arm_client.authorization.subscription_id).not_to be_nil - expect(arm_client.batch).to be_instance_of(Azure::ARM::Batch::BatchManagementClient) - expect(arm_client.cdn).to be_instance_of(Azure::ARM::CDN::CdnManagementClient) - expect(arm_client.cognitive_services).to be_instance_of(Azure::ARM::CognitiveServices::CognitiveServicesManagementClient) - expect(arm_client.commerce).to be_instance_of(Azure::ARM::Commerce::UsageManagementClient) - expect(arm_client.compute).to be_instance_of(Azure::ARM::Compute::ComputeManagementClient) - expect(arm_client.datalake_analytics).to be_instance_of(Azure::ARM::DataLakeAnalytics::DataLakeAnalyticsAccountManagementClient) - expect(arm_client.datalake_store).to be_instance_of(Azure::ARM::DataLakeStore::DataLakeStoreAccountManagementClient) - expect(arm_client.devtestlabs).to be_instance_of(Azure::ARM::DevTestLabs::DevTestLabsClient) - expect(arm_client.dns).to be_instance_of(Azure::ARM::Dns::DnsManagementClient) - expect(arm_client.features).to be_instance_of(Azure::ARM::Features::FeatureClient) - expect(arm_client.graph_rbac).to be_instance_of(Azure::ARM::Graph::GraphRbacManagementClient) - expect(arm_client.graph_rbac.tenant_id).not_to be_nil - expect(arm_client.iot_hub).to be_instance_of(Azure::ARM::IotHub::IotHubClient) - expect(arm_client.key_vault).to be_instance_of(Azure::ARM::KeyVault::KeyVaultManagementClient) - expect(arm_client.locks).to be_instance_of(Azure::ARM::Locks::ManagementLockClient) - expect(arm_client.logic).to be_instance_of(Azure::ARM::Logic::LogicManagementClient) - expect(arm_client.machine_learning).to be_instance_of(Azure::ARM::MachineLearning::AzureMLWebServicesManagementClient) - expect(arm_client.media_services).to be_instance_of(Azure::ARM::MediaServices::MediaServicesManagementClient) - expect(arm_client.mobile_engagement).to be_instance_of(Azure::ARM::MobileEngagement::EngagementManagementClient) - expect(arm_client.network).to be_instance_of(Azure::ARM::Network::NetworkManagementClient) - expect(arm_client.notification_hubs).to be_instance_of(Azure::ARM::NotificationHubs::NotificationHubsManagementClient) - expect(arm_client.policy).to be_instance_of(Azure::ARM::Policy::PolicyClient) - expect(arm_client.powerbi_embedded).to be_instance_of(Azure::ARM::PowerBiEmbedded::PowerBIEmbeddedManagementClient) - expect(arm_client.redis).to be_instance_of(Azure::ARM::Redis::RedisManagementClient) - expect(arm_client.resources).to be_instance_of(Azure::ARM::Resources::ResourceManagementClient) - expect(arm_client.scheduler).to be_instance_of(Azure::ARM::Scheduler::SchedulerManagementClient) - expect(arm_client.search).to be_instance_of(Azure::ARM::Search::SearchManagementClient) - expect(arm_client.server_management).to be_instance_of(Azure::ARM::ServerManagement::ServerManagement) - expect(arm_client.service_bus).to be_instance_of(Azure::ARM::ServiceBus::ServiceBusManagementClient) - expect(arm_client.sql).to be_instance_of(Azure::ARM::SQL::SqlManagementClient) - expect(arm_client.storage).to be_instance_of(Azure::ARM::Storage::StorageManagementClient) - expect(arm_client.subscription).to be_instance_of(Azure::ARM::Subscriptions::SubscriptionClient) - expect(arm_client.traffic_manager).to be_instance_of(Azure::ARM::TrafficManager::TrafficManagerManagementClient) - expect(arm_client.web).to be_instance_of(Azure::ARM::Web::WebSiteManagementClient) + expect(arm_client.authorization).to be_instance_of(Azure::Profiles::Latest::Authorization::Mgmt::AuthorizationClass) + expect(arm_client.batch).to be_instance_of(Azure::Profiles::Latest::Batch::Mgmt::BatchClass) + expect(arm_client.cdn).to be_instance_of(Azure::Profiles::Latest::CDN::Mgmt::CDNClass) + expect(arm_client.cognitive_services).to be_instance_of(Azure::Profiles::Latest::CognitiveServices::Mgmt::CognitiveServicesClass) + expect(arm_client.commerce).to be_instance_of(Azure::Profiles::Latest::Commerce::Mgmt::CommerceClass) + expect(arm_client.compute).to be_instance_of(Azure::Profiles::Latest::Compute::Mgmt::ComputeClass) + expect(arm_client.data_lake_analytics).to be_instance_of(Azure::Profiles::Latest::DataLakeAnalytics::Mgmt::DataLakeAnalyticsClass) + expect(arm_client.data_lake_store).to be_instance_of(Azure::Profiles::Latest::DataLakeStore::Mgmt::DataLakeStoreClass) + expect(arm_client.dev_test_labs).to be_instance_of(Azure::Profiles::Latest::DevTestLabs::Mgmt::DevTestLabsClass) + expect(arm_client.dns).to be_instance_of(Azure::Profiles::Latest::Dns::Mgmt::DnsClass) + expect(arm_client.features).to be_instance_of(Azure::Profiles::Latest::Features::Mgmt::FeaturesClass) + expect(arm_client.graph).to be_instance_of(Azure::Profiles::Latest::Graph::Mgmt::GraphClass) + expect(arm_client.iot_hub).to be_instance_of(Azure::Profiles::Latest::IotHub::Mgmt::IotHubClass) + expect(arm_client.key_vault).to be_instance_of(Azure::Profiles::Latest::KeyVault::Mgmt::KeyVaultClass) + expect(arm_client.locks).to be_instance_of(Azure::Profiles::Latest::Locks::Mgmt::LocksClass) + expect(arm_client.logic).to be_instance_of(Azure::Profiles::Latest::Logic::Mgmt::LogicClass) + expect(arm_client.machine_learning).to be_instance_of(Azure::Profiles::Latest::MachineLearning::Mgmt::MachineLearningClass) + expect(arm_client.media_services).to be_instance_of(Azure::Profiles::Latest::MediaServices::Mgmt::MediaServicesClass) + expect(arm_client.mobile_engagement).to be_instance_of(Azure::Profiles::Latest::MobileEngagement::Mgmt::MobileEngagementClass) + expect(arm_client.network).to be_instance_of(Azure::Profiles::Latest::Network::Mgmt::NetworkClass) + expect(arm_client.notification_hubs).to be_instance_of(Azure::Profiles::Latest::NotificationHubs::Mgmt::NotificationHubsClass) + expect(arm_client.policy).to be_instance_of(Azure::Profiles::Latest::Policy::Mgmt::PolicyClass) + expect(arm_client.power_bi_embedded).to be_instance_of(Azure::Profiles::Latest::PowerBiEmbedded::Mgmt::PowerBiEmbeddedClass) + expect(arm_client.redis).to be_instance_of(Azure::Profiles::Latest::Redis::Mgmt::RedisClass) + expect(arm_client.resources).to be_instance_of(Azure::Profiles::Latest::Resources::Mgmt::ResourcesClass) + expect(arm_client.scheduler).to be_instance_of(Azure::Profiles::Latest::Scheduler::Mgmt::SchedulerClass) + expect(arm_client.search).to be_instance_of(Azure::Profiles::Latest::Search::Mgmt::SearchClass) + expect(arm_client.server_management).to be_instance_of(Azure::Profiles::Latest::ServerManagement::Mgmt::ServerManagementClass) + expect(arm_client.service_bus).to be_instance_of(Azure::Profiles::Latest::ServiceBus::Mgmt::ServiceBusClass) + expect(arm_client.sql).to be_instance_of(Azure::Profiles::Latest::SQL::Mgmt::SQLClass) + expect(arm_client.storage).to be_instance_of(Azure::Profiles::Latest::Storage::Mgmt::StorageClass) + expect(arm_client.subscriptions).to be_instance_of(Azure::Profiles::Latest::Subscriptions::Mgmt::SubscriptionsClass) + expect(arm_client.traffic_manager).to be_instance_of(Azure::Profiles::Latest::TrafficManager::Mgmt::TrafficManagerClass) + expect(arm_client.web).to be_instance_of(Azure::Profiles::Latest::Web::Mgmt::WebClass) end end diff --git a/generators/profilegen/src/profile_generator.rb b/generators/profilegen/src/profile_generator.rb index 0114fc933c..ff3eed0efe 100644 --- a/generators/profilegen/src/profile_generator.rb +++ b/generators/profilegen/src/profile_generator.rb @@ -13,19 +13,18 @@ class ProfileGenerator attr_accessor :file_names, :profile_name, :class_names, :individual_gem_profile - attr_accessor :module_require, :class_name, :operation_types, :default_rp_client_version + attr_accessor :module_require, :class_name, :operation_types attr_accessor :management_client, :model_types, :versions_clients_mapper attr_accessor :profile_version, :spec_includes, :module_definition_file_name, :clients_ops_mapper - def initialize(profile, dir_metadata) + def initialize(profile, dir_metadata, sdk_path) @profile_name = profile['name'] @resource_provider_types = profile['resourceTypes'] - @default_versions = profile['defaultVersions'] - @output_dir = profile['output_dir'] + @sdk_path = sdk_path + @output_dir = "#{@sdk_path}/#{profile['output_dir']}" @individual_gem_profile = profile['individual_gem_profile'].nil?? false: true @dir_metadata = dir_metadata @module_definition_file_name = '' - @default_rp_client_version = '' @file_names, @model_types, @operation_types = [], [], [] @spec_includes, @class_names = [], [] @versions_clients_mapper, @clients_ops_mapper= {}, {} @@ -69,12 +68,9 @@ def generate_modules @spec_includes << @module_require @class_name = get_ruby_specific_resource_type_name(resource_provider) @class_names << @class_name - if(!@individual_gem_profile) - @default_rp_client_version = @default_versions[resource_provider] - end resource_types_obj.each do |resource_type_version, resource_types| - base_file_path = "#{@dir_metadata[resource_provider]['path']}/lib/#{resource_type_version}/generated/#{@module_require}.rb" + base_file_path = "#{@sdk_path}/#{@dir_metadata[resource_provider]['path']}/lib/#{resource_type_version}/generated/#{@module_require}.rb" require base_file_path resource_types.each do |resource_type| @@ -96,11 +92,10 @@ def generate_modules end file = get_module_file resource_provider - file.write(get_renderer(ProfileTemplates.module_template)) + file.write(get_renderer(ProfileTemplates.module_template(@sdk_path, @individual_gem_profile))) @model_types, @operation_types, @versions_clients_mapper = [], [], {} @clients_ops_mapper = {} @management_client = '' - @default_rp_client_version = '' end end @@ -126,7 +121,7 @@ def check_available_after_index(operation_type_to_check, index_after_to_compare) # def generate_client file = get_client_file - file.write(get_renderer(ProfileTemplates.client_template)) + file.write(get_renderer(ProfileTemplates.client_template(@sdk_path, @individual_gem_profile))) end # @@ -135,7 +130,7 @@ def generate_client def generate_module_definition get_module_definition_file_name file = get_module_definition_file - file.write(get_renderer(ProfileTemplates.module_definition_template)) + file.write(get_renderer(ProfileTemplates.module_definition_template(@sdk_path, @individual_gem_profile))) end def generate_operation_types(resource_provider, resource_type, resource_type_version) diff --git a/generators/profilegen/src/profile_generator_client.rb b/generators/profilegen/src/profile_generator_client.rb index 95e9025351..28f238b6e4 100644 --- a/generators/profilegen/src/profile_generator_client.rb +++ b/generators/profilegen/src/profile_generator_client.rb @@ -7,8 +7,9 @@ options = ProfileGeneratorOptionsParser.options ARGV dir_metadata = JSON.parse(File.read(options.dir_metadata)) -profiles = JSON.parse(File.read(options.profile)) +profiles_file = JSON.parse(File.read(options.profile)) +profiles = profiles_file[options.mode][options.key] profiles.each do |profile| - ProfileGenerator.new(profile, dir_metadata).generate + ProfileGenerator.new(profile, dir_metadata, options.sdk_path).generate end diff --git a/generators/profilegen/src/profile_generator_options_parser.rb b/generators/profilegen/src/profile_generator_options_parser.rb index 4193882cb5..97a4ec3747 100644 --- a/generators/profilegen/src/profile_generator_options_parser.rb +++ b/generators/profilegen/src/profile_generator_options_parser.rb @@ -13,6 +13,9 @@ # -h, --help : Displays help for the profile generator # -d, --dir_metadata : File that contains metadata info about RPs # -p, --profile : Input file contains the profile generation info about RPs, versions, etc. +# -m, --mode : Mode can be 'rollup'/ 'management' +# -k, --key : Key of the Profile +# -s, --sdk_path : Path to Azure Ruby SDK # class ProfileGeneratorOptionsParser @@ -30,6 +33,18 @@ def self.parse(args) options.profile = profile end + opts.on('-mMODE', '--mode=MODE', 'Mode') do |mode| + options.mode = mode + end + + opts.on('-kKEY', '--key=KEY', 'Key') do |key| + options.key = key + end + + opts.on('-sSDK_PATH', '--sdk_path=SDK_PATH', 'SDK Path') do |sdk_path| + options.sdk_path = sdk_path + end + opts.on('-h', '--help', 'Prints this help') do puts opts exit @@ -46,7 +61,7 @@ def self.parse(args) def self.options(args) args << '-h' if args.empty? options = self.parse(args) - mandatory_params = [:dir_metadata, :profile] + mandatory_params = [:dir_metadata, :profile, :mode, :key, :sdk_path] missing_params = mandatory_params.select{|param| options[param].nil?} raise OptionParser::MissingArgument.new(missing_params.join(', ')) unless missing_params.empty? options diff --git a/generators/profilegen/src/profile_template_files.rb b/generators/profilegen/src/profile_template_files.rb index df1bf9c288..6a8c741ab0 100644 --- a/generators/profilegen/src/profile_template_files.rb +++ b/generators/profilegen/src/profile_template_files.rb @@ -7,7 +7,15 @@ # in the generation of profile SDKs # module ProfileTemplateFiles - MODULE_TEMPLATE = './resources/templates/module_template.template' - CLIENT_TEMPLATE = './resources/templates/client_template.template' - MODULE_DEFINITION_TEMPLATE = './resources/templates/module_definition_template.template' + module Rollup + MODULE_TEMPLATE = 'templates/rollup/module_template.template' + CLIENT_TEMPLATE = 'templates/rollup/client_template.template' + MODULE_DEFINITION_TEMPLATE = 'templates/rollup/module_definition_template.template' + end + + module Individual + MODULE_TEMPLATE = 'templates/individual/module_template.template' + CLIENT_TEMPLATE = 'templates/individual/client_template.template' + MODULE_DEFINITION_TEMPLATE = 'templates/individual/module_definition_template.template' + end end \ No newline at end of file diff --git a/generators/profilegen/src/profile_templates.rb b/generators/profilegen/src/profile_templates.rb index 1a68d3d525..d2af4f8b08 100644 --- a/generators/profilegen/src/profile_templates.rb +++ b/generators/profilegen/src/profile_templates.rb @@ -9,25 +9,38 @@ # during the generation of profile sdks # class ProfileTemplates + Profile_gen_resources_path = 'generators/profilegen/src/resources' # # Module template to generate the individual module # files per RP (such as ComputModule, NetworkModule, etc) # - def self.module_template - File.read(ProfileTemplateFiles::MODULE_TEMPLATE) + def self.module_template(sdk_path, individual) + if(individual) + File.read("#{sdk_path}/#{Profile_gen_resources_path}/#{ProfileTemplateFiles::Individual::MODULE_TEMPLATE}") + else + File.read("#{sdk_path}/#{Profile_gen_resources_path}/#{ProfileTemplateFiles::Rollup::MODULE_TEMPLATE}") + end end # # Client template to generate the profile client # - def self.client_template - File.read(ProfileTemplateFiles::CLIENT_TEMPLATE) + def self.client_template(sdk_path, individual) + if(individual) + File.read("#{sdk_path}/#{Profile_gen_resources_path}/#{ProfileTemplateFiles::Individual::CLIENT_TEMPLATE}") + else + File.read("#{sdk_path}/#{Profile_gen_resources_path}/#{ProfileTemplateFiles::Rollup::CLIENT_TEMPLATE}") + end end # # Module definition template to generate the profile client # - def self.module_definition_template - File.read(ProfileTemplateFiles::MODULE_DEFINITION_TEMPLATE) + def self.module_definition_template(sdk_path, individual) + if(individual) + File.read("#{sdk_path}/#{Profile_gen_resources_path}/#{ProfileTemplateFiles::Individual::MODULE_DEFINITION_TEMPLATE}") + else + File.read("#{sdk_path}/#{Profile_gen_resources_path}/#{ProfileTemplateFiles::Rollup::MODULE_DEFINITION_TEMPLATE}") + end end end diff --git a/generators/profilegen/src/resources/dir_metadata.json b/generators/profilegen/src/resources/dir_metadata.json index 690a70ab95..93424c1c47 100644 --- a/generators/profilegen/src/resources/dir_metadata.json +++ b/generators/profilegen/src/resources/dir_metadata.json @@ -1,291 +1,291 @@ { "Microsoft.AnalysisServices": { - "path": "../../../management/azure_mgmt_analysis_services", + "path": "management/azure_mgmt_analysis_services", "namespace": "Azure::AnalysisServices::Mgmt", "module_require": "azure_mgmt_analysis_services" }, "Microsoft.Authorization": { - "path": "../../../management/azure_mgmt_authorization", + "path": "management/azure_mgmt_authorization", "namespace": "Azure::Authorization::Mgmt", "module_require": "azure_mgmt_authorization" }, "Microsoft.Automation": { - "path": "../../../management/azure_mgmt_automation", + "path": "management/azure_mgmt_automation", "namespace": "Azure::Automation::Mgmt", "module_require": "azure_mgmt_automation" }, "Microsoft.Batch": { - "path": "../../../management/azure_mgmt_batch", + "path": "management/azure_mgmt_batch", "namespace": "Azure::Batch::Mgmt", "module_require": "azure_mgmt_batch" }, "Microsoft.Billing": { - "path": "../../../management/azure_mgmt_billing", + "path": "management/azure_mgmt_billing", "namespace": "Azure::Billing::Mgmt", "module_require": "azure_mgmt_billing" }, "Microsoft.CDN": { - "path": "../../../management/azure_mgmt_cdn", + "path": "management/azure_mgmt_cdn", "namespace": "Azure::CDN::Mgmt", "module_require": "azure_mgmt_cdn" }, "Microsoft.CognitiveServices": { - "path": "../../../management/azure_mgmt_cognitive_services", + "path": "management/azure_mgmt_cognitive_services", "namespace": "Azure::CognitiveServices::Mgmt", "module_require": "azure_mgmt_cognitive_services" }, "Microsoft.Commerce": { - "path": "../../../management/azure_mgmt_commerce", + "path": "management/azure_mgmt_commerce", "namespace": "Azure::Commerce::Mgmt", "module_require": "azure_mgmt_commerce" }, "Microsoft.Compute": { - "path": "../../../management/azure_mgmt_compute", + "path": "management/azure_mgmt_compute", "namespace": "Azure::Compute::Mgmt", "module_require": "azure_mgmt_compute" }, "Microsoft.Consumption": { - "path": "../../../management/azure_mgmt_consumption", + "path": "management/azure_mgmt_consumption", "namespace": "Azure::Consumption::Mgmt", "module_require": "azure_mgmt_consumption" }, "Microsoft.ContainerInstance": { - "path": "../../../management/azure_mgmt_container_instance", + "path": "management/azure_mgmt_container_instance", "namespace": "Azure::ContainerInstance::Mgmt", "module_require": "azure_mgmt_container_instance" }, "Microsoft.ContainerRegistry": { - "path": "../../../management/azure_mgmt_container_registry", + "path": "management/azure_mgmt_container_registry", "namespace": "Azure::ContainerRegistry::Mgmt", "module_require": "azure_mgmt_container_registry" }, "Microsoft.ContainerService": { - "path": "../../../management/azure_mgmt_container_service", + "path": "management/azure_mgmt_container_service", "namespace": "Azure::ContainerService::Mgmt", "module_require": "azure_mgmt_container_service" }, "Microsoft.CustomerInsights": { - "path": "../../../management/azure_mgmt_customer_insights", + "path": "management/azure_mgmt_customer_insights", "namespace": "Azure::CustomerInsights::Mgmt", "module_require": "azure_mgmt_customer_insights" }, "Microsoft.DataLakeAnalytics": { - "path": "../../../management/azure_mgmt_datalake_analytics", + "path": "management/azure_mgmt_datalake_analytics", "namespace": "Azure::DataLakeAnalytics::Mgmt", "module_require": "azure_mgmt_datalake_analytics" }, "Microsoft.DataLakeStore": { - "path": "../../../management/azure_mgmt_datalake_store", + "path": "management/azure_mgmt_datalake_store", "namespace": "Azure::DataLakeStore::Mgmt", "module_require": "azure_mgmt_datalake_store" }, "Microsoft.DevTestLabs": { - "path": "../../../management/azure_mgmt_devtestlabs", + "path": "management/azure_mgmt_devtestlabs", "namespace": "Azure::DevTestLabs::Mgmt", "module_require": "azure_mgmt_devtestlabs" }, "Microsoft.Dns": { - "path": "../../../management/azure_mgmt_dns", + "path": "management/azure_mgmt_dns", "namespace": "Azure::Dns::Mgmt", "module_require": "azure_mgmt_dns" }, "Microsoft.EventGrid": { - "path": "../../../management/azure_mgmt_event_grid", + "path": "management/azure_mgmt_event_grid", "namespace": "Azure::EventGrid::Mgmt", "module_require": "azure_mgmt_event_grid" }, "Microsoft.EventHub": { - "path": "../../../management/azure_mgmt_event_hub", + "path": "management/azure_mgmt_event_hub", "namespace": "Azure::EventHub::Mgmt", "module_require": "azure_mgmt_event_hub" }, "Microsoft.Features": { - "path": "../../../management/azure_mgmt_features", + "path": "management/azure_mgmt_features", "namespace": "Azure::Features::Mgmt", "module_require": "azure_mgmt_features" }, "Microsoft.Graph": { - "path": "../../../management/azure_mgmt_graph", + "path": "management/azure_mgmt_graph", "namespace": "Azure::Graph::Mgmt", "module_require": "azure_mgmt_graph" }, "Microsoft.Insights": { - "path": "../../../management/azure_mgmt_insights", + "path": "management/azure_mgmt_insights", "namespace": "Azure::Insights::Mgmt", "module_require": "azure_mgmt_insights" }, "Microsoft.IotHub": { - "path": "../../../management/azure_mgmt_iot_hub", + "path": "management/azure_mgmt_iot_hub", "namespace": "Azure::IotHub::Mgmt", "module_require": "azure_mgmt_iot_hub" }, "Microsoft.KeyVault": { - "path": "../../../management/azure_mgmt_key_vault", + "path": "management/azure_mgmt_key_vault", "namespace": "Azure::KeyVault::Mgmt", "module_require": "azure_mgmt_key_vault" }, "Microsoft.Links": { - "path": "../../../management/azure_mgmt_links", + "path": "management/azure_mgmt_links", "namespace": "Azure::Links::Mgmt", "module_require": "azure_mgmt_links" }, "Microsoft.Locks": { - "path": "../../../management/azure_mgmt_locks", + "path": "management/azure_mgmt_locks", "namespace": "Azure::Locks::Mgmt", "module_require": "azure_mgmt_locks" }, "Microsoft.Logic": { - "path": "../../../management/azure_mgmt_logic", + "path": "management/azure_mgmt_logic", "namespace": "Azure::Logic::Mgmt", "module_require": "azure_mgmt_logic" }, "Microsoft.MachineLearning": { - "path": "../../../management/azure_mgmt_machine_learning", + "path": "management/azure_mgmt_machine_learning", "namespace": "Azure::MachineLearning::Mgmt", "module_require": "azure_mgmt_machine_learning" }, "Microsoft.ManagedApplications": { - "path": "../../../management/azure_mgmt_managed_applications", + "path": "management/azure_mgmt_managed_applications", "namespace": "Azure::ManagedApplications::Mgmt", "module_require": "azure_mgmt_managed_applications" }, "Microsoft.MarketplaceOrdering": { - "path": "../../../management/azure_mgmt_marketplace_ordering", + "path": "management/azure_mgmt_marketplace_ordering", "namespace": "Azure::MarketplaceOrdering::Mgmt", "module_require": "azure_mgmt_marketplace_ordering" }, "Microsoft.MediaServices": { - "path": "../../../management/azure_mgmt_media_services", + "path": "management/azure_mgmt_media_services", "namespace": "Azure::MediaServices::Mgmt", "module_require": "azure_mgmt_media_services" }, "Microsoft.MobileEngagement": { - "path": "../../../management/azure_mgmt_mobile_engagement", + "path": "management/azure_mgmt_mobile_engagement", "namespace": "Azure::MobileEngagement::Mgmt", "module_require": "azure_mgmt_mobile_engagement" }, "Microsoft.Monitor": { - "path": "../../../management/azure_mgmt_monitor", + "path": "management/azure_mgmt_monitor", "namespace": "Azure::Monitor::Mgmt", "module_require": "azure_mgmt_monitor" }, "Microsoft.Network": { - "path": "../../../management/azure_mgmt_network", + "path": "management/azure_mgmt_network", "namespace": "Azure::Network::Mgmt", "module_require": "azure_mgmt_network" }, "Microsoft.NotificationHubs": { - "path": "../../../management/azure_mgmt_notification_hubs", + "path": "management/azure_mgmt_notification_hubs", "namespace": "Azure::NotificationHubs::Mgmt", "module_require": "azure_mgmt_notification_hubs" }, "Microsoft.OperationalInsights": { - "path": "../../../management/azure_mgmt_operational_insights", + "path": "management/azure_mgmt_operational_insights", "namespace": "Azure::OperationalInsights::Mgmt", "module_require": "azure_mgmt_operational_insights" }, "Microsoft.Policy": { - "path": "../../../management/azure_mgmt_policy", + "path": "management/azure_mgmt_policy", "namespace": "Azure::Policy::Mgmt", "module_require": "azure_mgmt_policy" }, "Microsoft.PowerBiEmbedded": { - "path": "../../../management/azure_mgmt_powerbi_embedded", + "path": "management/azure_mgmt_powerbi_embedded", "namespace": "Azure::PowerBiEmbedded::Mgmt", "module_require": "azure_mgmt_powerbi_embedded" }, "Microsoft.RecoveryServices": { - "path": "../../../management/azure_mgmt_recovery_services", + "path": "management/azure_mgmt_recovery_services", "namespace": "Azure::RecoveryServices::Mgmt", "module_require": "azure_mgmt_recovery_services" }, "Microsoft.RecoveryServicesBackup": { - "path": "../../../management/azure_mgmt_recovery_services_backup", + "path": "management/azure_mgmt_recovery_services_backup", "namespace": "Azure::RecoveryServicesBackup::Mgmt", "module_require": "azure_mgmt_recovery_services_backup" }, "Microsoft.RecoveryServicesSiteRecovery": { - "path": "../../../management/azure_mgmt_recovery_services_site_recovery", + "path": "management/azure_mgmt_recovery_services_site_recovery", "namespace": "Azure::RecoveryServicesSiteRecovery::Mgmt", "module_require": "azure_mgmt_recovery_services_site_recovery" }, "Microsoft.Redis": { - "path": "../../../management/azure_mgmt_redis", + "path": "management/azure_mgmt_redis", "namespace": "Azure::Redis::Mgmt", "module_require": "azure_mgmt_redis" }, "Microsoft.Relay": { - "path": "../../../management/azure_mgmt_relay", + "path": "management/azure_mgmt_relay", "namespace": "Azure::Relay::Mgmt", "module_require": "azure_mgmt_relay" }, "Microsoft.Resources": { - "path": "../../../management/azure_mgmt_resources", + "path": "management/azure_mgmt_resources", "namespace": "Azure::Resources::Mgmt", "module_require": "azure_mgmt_resources" }, "Microsoft.ResourcesManagement": { - "path": "../../../management/azure_mgmt_resources_management", + "path": "management/azure_mgmt_resources_management", "namespace": "Azure::ResourcesManagement::Mgmt", "module_require": "azure_mgmt_resources_management" }, "Microsoft.Scheduler": { - "path": "../../../management/azure_mgmt_scheduler", + "path": "management/azure_mgmt_scheduler", "namespace": "Azure::Scheduler::Mgmt", "module_require": "azure_mgmt_scheduler" }, "Microsoft.Search": { - "path": "../../../management/azure_mgmt_search", + "path": "management/azure_mgmt_search", "namespace": "Azure::Search::Mgmt", "module_require": "azure_mgmt_search" }, "Microsoft.ServerManagement": { - "path": "../../../management/azure_mgmt_server_management", + "path": "management/azure_mgmt_server_management", "namespace": "Azure::ServerManagement::Mgmt", "module_require": "azure_mgmt_server_management" }, "Microsoft.ServiceBus": { - "path": "../../../management/azure_mgmt_service_bus", + "path": "management/azure_mgmt_service_bus", "namespace": "Azure::ServiceBus::Mgmt", "module_require": "azure_mgmt_service_bus" }, "Microsoft.ServiceFabric": { - "path": "../../../management/azure_mgmt_service_fabric", + "path": "management/azure_mgmt_service_fabric", "namespace": "Azure::ServiceFabric::Mgmt", "module_require": "azure_mgmt_service_fabric" }, "Microsoft.SQL": { - "path": "../../../management/azure_mgmt_sql", + "path": "management/azure_mgmt_sql", "namespace": "Azure::SQL::Mgmt", "module_require": "azure_mgmt_sql" }, "Microsoft.StorSimple8000Series": { - "path": "../../../management/azure_mgmt_stor_simple8000_series", + "path": "management/azure_mgmt_stor_simple8000_series", "namespace": "Azure::StorSimple8000Series::Mgmt", "module_require": "azure_mgmt_stor_simple8000_series" }, "Microsoft.Storage": { - "path": "../../../management/azure_mgmt_storage", + "path": "management/azure_mgmt_storage", "namespace": "Azure::Storage::Mgmt", "module_require": "azure_mgmt_storage" }, "Microsoft.StreamAnalytics": { - "path": "../../../management/azure_mgmt_stream_analytics", + "path": "management/azure_mgmt_stream_analytics", "namespace": "Azure::StreamAnalytics::Mgmt", "module_require": "azure_mgmt_stream_analytics" }, "Microsoft.Subscriptions": { - "path": "../../../management/azure_mgmt_subscriptions", + "path": "management/azure_mgmt_subscriptions", "namespace": "Azure::Subscriptions::Mgmt", "module_require": "azure_mgmt_subscriptions" }, "Microsoft.TrafficManager": { - "path": "../../../management/azure_mgmt_traffic_manager", + "path": "management/azure_mgmt_traffic_manager", "namespace": "Azure::TrafficManager::Mgmt", "module_require": "azure_mgmt_traffic_manager" }, "Microsoft.Web": { - "path": "../../../management/azure_mgmt_web", + "path": "management/azure_mgmt_web", "namespace": "Azure::Web::Mgmt", "module_require": "azure_mgmt_web" } diff --git a/generators/profilegen/src/resources/templates/individual/client_template.template b/generators/profilegen/src/resources/templates/individual/client_template.template new file mode 100644 index 0000000000..4be2d59123 --- /dev/null +++ b/generators/profilegen/src/resources/templates/individual/client_template.template @@ -0,0 +1,35 @@ +# 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. + +require 'profiles/<%= @profile_name.downcase %>/<%= @module_definition_file_name.gsub('.rb','') %>' +<%- @file_names.each do |file_name| -%> +require 'profiles/<%= @profile_name.downcase %>/modules/<%= file_name %>' +<%- end -%> +require 'profiles/common/configurable' +require 'profiles/common/default' + +module Azure::<%= @class_name %>::Profiles::<%= @profile_name %>::Mgmt + # + # Client class for the <%= @profile_name %> profile SDK. + # + class Client < <%= "#{@class_names[0]}" %>Class + include Azure::ARM::Configurable + + + def initialize(options = {}) + super(options) + end + + def credentials + if @credentials.nil? + self.active_directory_settings ||= Azure::ARM::Default.active_directory_settings + + @credentials = MsRest::TokenCredentials.new( + MsRestAzure::ApplicationTokenProvider.new( + self.tenant_id, self.client_id, self.client_secret, self.active_directory_settings)) + end + @credentials + end + end +end diff --git a/generators/profilegen/src/resources/templates/individual/module_definition_template.template b/generators/profilegen/src/resources/templates/individual/module_definition_template.template new file mode 100644 index 0000000000..f95b3ca31d --- /dev/null +++ b/generators/profilegen/src/resources/templates/individual/module_definition_template.template @@ -0,0 +1,9 @@ +# 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 end +module Azure::<%= @class_name %> end +module Azure::<%= @class_name %>::Profiles end +module Azure::<%= @class_name %>::Profiles::<%= @profile_name %> end +module Azure::<%= @class_name %>::Profiles::<%= @profile_name %>::Mgmt end diff --git a/generators/profilegen/src/resources/templates/module_template.template b/generators/profilegen/src/resources/templates/individual/module_template.template similarity index 82% rename from generators/profilegen/src/resources/templates/module_template.template rename to generators/profilegen/src/resources/templates/individual/module_template.template index 38441d7f78..7b34cdd3de 100644 --- a/generators/profilegen/src/resources/templates/module_template.template +++ b/generators/profilegen/src/resources/templates/individual/module_template.template @@ -4,14 +4,7 @@ require '<%= @module_require %>' -<%- if @individual_gem_profile -%> module Azure::<%= @class_name %>::Profiles::<%= @profile_name %>::Mgmt -<%- else -%> -module Azure::Profiles::<%= @profile_name %> -<%- end -%> - <%- if !@individual_gem_profile -%> - module <%= @class_name %>::Mgmt - <%- end -%> <%- @clients_ops_mapper.each do |key, value| -%> <%- value.each do |operation_type| -%> <%- if(operation_type[:operation_name_ruby] != 'DO_NOT_ADD') -%> @@ -32,7 +25,6 @@ module Azure::Profiles::<%= @profile_name %> class <%= @class_name %>Class attr_reader <%- @clients_ops_mapper.each do |key, value| -%><% value.each do |operation_type| %><%- if(operation_type[:operation_name_ruby] != 'DO_NOT_ADD') -%>:<%= operation_type[:operation_name_ruby] %>, <% end %><% end %><% end %>:configurable, :base_url, :options, :model_classes - <%- if @individual_gem_profile -%> def initialize(options = {}) if options.is_a?(Hash) && options.length == 0 @options = setup_options @@ -43,10 +35,6 @@ module Azure::Profiles::<%= @profile_name %> reset!(options) @configurable, @base_url, @options = self, nil, nil - <%- else -%> - def initialize(configurable, base_url=nil, options=nil) - @configurable, @base_url, @options = configurable, base_url, options - <%- end -%> <%- @clients_ops_mapper.each_with_index do |(key, value), index| -%> client_<%= index %> = <%= key %>.new(configurable.credentials, base_url, options) @@ -71,7 +59,4 @@ module Azure::Profiles::<%= @profile_name %> <%- end -%> end end - <%- if !@individual_gem_profile -%> - end - <%- end -%> end diff --git a/generators/profilegen/src/resources/templates/client_template.template b/generators/profilegen/src/resources/templates/rollup/client_template.template similarity index 68% rename from generators/profilegen/src/resources/templates/client_template.template rename to generators/profilegen/src/resources/templates/rollup/client_template.template index 67f85ce46e..aa16880cfc 100644 --- a/generators/profilegen/src/resources/templates/client_template.template +++ b/generators/profilegen/src/resources/templates/rollup/client_template.template @@ -2,45 +2,23 @@ # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. -<%- if @individual_gem_profile -%> -require 'profiles/<%= @profile_name.downcase %>/<%= @module_definition_file_name.gsub('.rb','') %>' -<%- @file_names.each do |file_name| -%> -require 'profiles/<%= @profile_name.downcase %>/modules/<%= file_name %>' -<%- end -%> -require 'profiles/common/configurable' -require 'profiles/common/default' -<%- else -%> require '<%= @profile_name.downcase %>/<%= @module_definition_file_name.gsub('.rb','') %>' <%- @file_names.each do |file_name| -%> require '<%= @profile_name.downcase %>/modules/<%= file_name %>' <%- end -%> require 'common/configurable' require 'common/default' -<%- end -%> -<%- if @individual_gem_profile -%> -module Azure::<%= @class_name %>::Profiles::<%= @profile_name %>::Mgmt -<%- else -%> module Azure::Profiles::<%= @profile_name %>::Mgmt -<%- end -%> # # Client class for the <%= @profile_name %> profile SDK. # - <%- if @individual_gem_profile -%> - class Client < <%= "#{@class_names[0]}" %>Class - <%- else -%> class Client - <%- end -%> include Azure::ARM::Configurable - <%- if !@individual_gem_profile -%> attr_reader <% @class_names.each_with_index do |class_name, index| %> :<%= class_name.gsub(/([a-z\d])([A-Z])/,'\1_\2').downcase %><% if index != @class_names.length - 1 %>,<% end %><% end %> - <%- end -%> def initialize(options = {}) - <%- if @individual_gem_profile -%> - super(options) - <%- else -%> if options.is_a?(Hash) && options.length == 0 @options = setup_options else @@ -52,7 +30,6 @@ module Azure::Profiles::<%= @profile_name %>::Mgmt <%- @class_names.each do |class_name| -%> @<%= class_name.gsub(/([a-z\d])([A-Z])/,'\1_\2').downcase %> = Azure::Profiles::<%= @profile_name %>::<%= "#{class_name}::Mgmt::#{class_name}" %>Class.new(self) <%- end -%> - <%- end -%> end def credentials diff --git a/generators/profilegen/src/resources/templates/module_definition_template.template b/generators/profilegen/src/resources/templates/rollup/module_definition_template.template similarity index 64% rename from generators/profilegen/src/resources/templates/module_definition_template.template rename to generators/profilegen/src/resources/templates/rollup/module_definition_template.template index 089fa162c5..98d05c69f9 100644 --- a/generators/profilegen/src/resources/templates/module_definition_template.template +++ b/generators/profilegen/src/resources/templates/rollup/module_definition_template.template @@ -3,17 +3,10 @@ # Licensed under the MIT License. See License.txt in the project root for license information. module Azure end -<%- if @individual_gem_profile -%> -module Azure::<%= @class_name %> end -module Azure::<%= @class_name %>::Profiles end -module Azure::<%= @class_name %>::Profiles::<%= @profile_name %> end -module Azure::<%= @class_name %>::Profiles::<%= @profile_name %>::Mgmt end -<%- else -%> module Azure::Profiles end module Azure::Profiles::<%= @profile_name %> end module Azure::Profiles::<%= @profile_name %>::Mgmt end <%- @class_names.each do |class_name| -%> module Azure::Profiles::<%= @profile_name %>::<%= class_name %> end module Azure::Profiles::<%= @profile_name %>::<%= class_name %>::Mgmt end -<%- end -%> <%- end -%> \ No newline at end of file diff --git a/generators/profilegen/src/resources/templates/rollup/module_template.template b/generators/profilegen/src/resources/templates/rollup/module_template.template new file mode 100644 index 0000000000..99b4e1dc1b --- /dev/null +++ b/generators/profilegen/src/resources/templates/rollup/module_template.template @@ -0,0 +1,56 @@ +# 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. + +require '<%= @module_require %>' + +module Azure::Profiles::<%= @profile_name %> + module <%= @class_name %>::Mgmt + <%- @clients_ops_mapper.each do |key, value| -%> + <%- value.each do |operation_type| -%> + <%- if(operation_type[:operation_name_ruby] != 'DO_NOT_ADD') -%> + <%= operation_type[:operation_name] %> = <%= operation_type[:operation_body] %> + <%- end -%> + <%- end -%> + <%- end -%> + + module Models + <%- @model_types.each do |model_type| -%> + <%= model_type[:model_name] %> = <%= model_type[:model_body] %> + <%- end -%> + end + + # + # <%= @class_name %> + # + class <%= @class_name %>Class + attr_reader <%- @clients_ops_mapper.each do |key, value| -%><% value.each do |operation_type| %><%- if(operation_type[:operation_name_ruby] != 'DO_NOT_ADD') -%>:<%= operation_type[:operation_name_ruby] %>, <% end %><% end %><% end %>:configurable, :base_url, :options, :model_classes + + def initialize(configurable, base_url=nil, options=nil) + @configurable, @base_url, @options = configurable, base_url, options + + <%- @clients_ops_mapper.each_with_index do |(key, value), index| -%> + client_<%= index %> = <%= key %>.new(configurable.credentials, base_url, options) + if(client_<%= index %>.respond_to?(:subscription_id)) + client_<%= index %>.subscription_id = configurable.subscription_id + end + <%- value.each do |operation_type| -%> + <%- if(operation_type[:operation_name_ruby] != 'DO_NOT_ADD') -%> + @<%= operation_type[:operation_name_ruby] %> = client_<%= index %>.<%= operation_type[:operation_name_ruby] %> + <%- end -%> + <%- end -%> + + <%- end -%> + @model_classes = ModelClasses.new + end + + class ModelClasses + <%- @model_types.each do |model_type| -%> + def <%= model_type[:method_name] %> + <%= model_type[:model_body] %> + end + <%- end -%> + end + end + end +end diff --git a/generators/requirefilegen/src/require_file_generator.rb b/generators/requirefilegen/src/require_file_generator.rb index 409a2ddec6..1d977a777e 100644 --- a/generators/requirefilegen/src/require_file_generator.rb +++ b/generators/requirefilegen/src/require_file_generator.rb @@ -11,10 +11,10 @@ class RequireFileGenerator attr_accessor :requires - def initialize(azure_sdk_location, mgmt_sdks_location) - @azure_sdk_location = azure_sdk_location - @mgmt_sdks_location = mgmt_sdks_location - @current_location = Dir.pwd + def initialize(azure_sdk_for_ruby_location) + @azure_sdk_location = "#{azure_sdk_for_ruby_location}/azure_sdk" + @mgmt_sdks_location = "#{azure_sdk_for_ruby_location}/management" + @azure_sdk_for_ruby_location = azure_sdk_for_ruby_location @file_to_be_written = '' @requires = [] end @@ -55,7 +55,7 @@ def initialize(azure_sdk_location, mgmt_sdks_location) # def generate_require_files_for_individual_gems puts 'Generating require files for individual gems' - Dir.chdir("#{@current_location}/#{@mgmt_sdks_location}") + Dir.chdir("#{@mgmt_sdks_location}") gems = Dir['*'].reject{|o| not File.directory?(o)} gems.each do |gem| # azure_mgmt_insights is a special case gem which we have stopped @@ -70,19 +70,19 @@ def generate_require_files_for_individual_gems puts "Generating require files for #{gem}" - Dir.chdir("#{@current_location}/#{@mgmt_sdks_location}/#{gem}/lib") + Dir.chdir("#{@mgmt_sdks_location}/#{gem}/lib") sub_files_list = Dir['*'].reject{|o| File.directory?(o)} sub_files_list.each do |file| # Ignore the module definition and version files. if(!(file.end_with?'module_definition.rb') && (!file.end_with?'version.rb')) - @file_to_be_written = "#{@current_location}/#{@mgmt_sdks_location}/#{gem}/lib/#{file}" + @file_to_be_written = "#{@mgmt_sdks_location}/#{gem}/lib/#{file}" end end sub_dirs = Dir['*'].reject{|o| not File.directory?(o)} sub_dirs.each do |sub_dir| if(sub_dir == 'profiles') - Dir.chdir("#{@current_location}/#{@mgmt_sdks_location}/#{gem}/lib/profiles") + Dir.chdir("#{@mgmt_sdks_location}/#{gem}/lib/profiles") profiles_folders = Dir['*'].reject{|o| not File.directory?(o)} profiles_folders.each do |profile_folder| # Ignore the common folder @@ -90,7 +90,7 @@ def generate_require_files_for_individual_gems next end - Dir.chdir("#{@current_location}/#{@mgmt_sdks_location}/#{gem}/lib/profiles/#{profile_folder}") + Dir.chdir("#{@mgmt_sdks_location}/#{gem}/lib/profiles/#{profile_folder}") files_list = Dir['*'].reject{|o| File.directory?(o)} files_list.each do |file| # Ignore the module definition file @@ -103,7 +103,7 @@ def generate_require_files_for_individual_gems end else - Dir.chdir("#{@current_location}/#{@mgmt_sdks_location}/#{gem}/lib/#{sub_dir}/generated") + Dir.chdir("#{@mgmt_sdks_location}/#{gem}/lib/#{sub_dir}/generated") files_list = Dir['*'].reject{|o| File.directory?(o)} @requires << "#{sub_dir}/generated/#{files_list[0]}" end @@ -147,8 +147,8 @@ def generate_require_files_for_individual_gems def generate_require_files_for_rollup_gem puts 'Generating require files for rollup gem' @requires = [] - @file_to_be_written = "#{@current_location}/#{@azure_sdk_location}/lib/azure_sdk.rb" - Dir.chdir("#{@current_location}/#{@azure_sdk_location}/lib") + @file_to_be_written = "#{@azure_sdk_location}/lib/azure_sdk.rb" + Dir.chdir("#{@azure_sdk_location}/lib") sub_dirs = Dir['*'].reject{|o| not File.directory?(o)} sub_dirs.each do |sub_dir| # Ignore the 'common' & 'azure_sdk' folders. @@ -156,7 +156,7 @@ def generate_require_files_for_rollup_gem next end - Dir.chdir("#{@current_location}/#{@azure_sdk_location}/lib/#{sub_dir}") + Dir.chdir("#{@azure_sdk_location}/lib/#{sub_dir}") sub_files_list = Dir['*'].reject{|o| File.directory?(o)} sub_files_list.each do |file| # Ignore the module definition file @@ -202,7 +202,7 @@ def get_require_file # and returns the object. # def get_renderer_template - File.read("#{@current_location}/resources/templates/require_file_template.template") + File.read("#{@azure_sdk_for_ruby_location}/generators/requirefilegen/src/resources/templates/require_file_template.template") end # @@ -226,7 +226,7 @@ def get_binding end options = RequireFileGeneratorOptionsParser.options ARGV -obj = RequireFileGenerator.new('../../../azure_sdk', '../../../management') +obj = RequireFileGenerator.new(options.sdk_path) if options.mode == 'rollup' obj.generate_require_files_for_rollup_gem else diff --git a/generators/requirefilegen/src/require_file_generator_options_parser.rb b/generators/requirefilegen/src/require_file_generator_options_parser.rb index 10f41c890a..dff13f0aa9 100644 --- a/generators/requirefilegen/src/require_file_generator_options_parser.rb +++ b/generators/requirefilegen/src/require_file_generator_options_parser.rb @@ -13,6 +13,7 @@ # -h, --help : Displays help for the require files generator # -m, --mode : Mode for which the require files are to be generated. # ['rollup', 'individual'] +# -s, --sdk_path : Path to Azure Ruby SDK # class RequireFileGeneratorOptionsParser @@ -29,6 +30,10 @@ def self.parse(args) options.mode = mode end + opts.on('-sSDK_PATH', '--sdk_path=SDK_PATH', 'SDK Path') do |sdk_path| + options.sdk_path = sdk_path + end + opts.on('-h', '--help', 'Prints this help') do puts opts exit @@ -45,7 +50,7 @@ def self.parse(args) def self.options(args) args << '-h' if args.empty? options = self.parse(args) - mandatory_params = [:mode] + mandatory_params = [:mode, :sdk_path] missing_params = mandatory_params.select{|param| options[param].nil?} raise OptionParser::MissingArgument.new(missing_params.join(', ')) unless missing_params.empty? options diff --git a/profile_specs/analysis_services_profiles.json b/profile_specs/analysis_services_profiles.json deleted file mode 100644 index f05b70d488..0000000000 --- a/profile_specs/analysis_services_profiles.json +++ /dev/null @@ -1,12 +0,0 @@ -[ - { - "name": "Latest", - "resourceTypes": { - "Microsoft.AnalysisServices" : { - "2017-07-14": ["*"] - } - }, - "output_dir": "../../../management/azure_mgmt_analysis_services/lib/profiles", - "individual_gem_profile": true - } -] \ No newline at end of file diff --git a/profile_specs/authorization_profiles.json b/profile_specs/authorization_profiles.json deleted file mode 100644 index c4999d04ce..0000000000 --- a/profile_specs/authorization_profiles.json +++ /dev/null @@ -1,12 +0,0 @@ -[ - { - "name": "Latest", - "resourceTypes": { - "Microsoft.Authorization" : { - "2015-07-01": ["*"] - } - }, - "output_dir": "../../../management/azure_mgmt_authorization/lib/profiles", - "individual_gem_profile": true - } -] \ No newline at end of file diff --git a/profile_specs/automation_profiles.json b/profile_specs/automation_profiles.json deleted file mode 100644 index 394047216a..0000000000 --- a/profile_specs/automation_profiles.json +++ /dev/null @@ -1,12 +0,0 @@ -[ - { - "name": "Latest", - "resourceTypes": { - "Microsoft.Automation" : { - "2015-10-31": ["*"] - } - }, - "output_dir": "../../../management/azure_mgmt_automation/lib/profiles", - "individual_gem_profile": true - } -] \ No newline at end of file diff --git a/profile_specs/batch_profiles.json b/profile_specs/batch_profiles.json deleted file mode 100644 index 5d7d79c264..0000000000 --- a/profile_specs/batch_profiles.json +++ /dev/null @@ -1,12 +0,0 @@ -[ - { - "name": "Latest", - "resourceTypes": { - "Microsoft.Batch" : { - "2017-05-01": ["*"] - } - }, - "output_dir": "../../../management/azure_mgmt_batch/lib/profiles", - "individual_gem_profile": true - } -] \ No newline at end of file diff --git a/profile_specs/billing_profiles.json b/profile_specs/billing_profiles.json deleted file mode 100644 index 45bc2e5365..0000000000 --- a/profile_specs/billing_profiles.json +++ /dev/null @@ -1,12 +0,0 @@ -[ - { - "name": "Latest", - "resourceTypes": { - "Microsoft.Billing" : { - "2017-04-24-preview": ["*"] - } - }, - "output_dir": "../../../management/azure_mgmt_billing/lib/profiles", - "individual_gem_profile": true - } -] \ No newline at end of file diff --git a/profile_specs/cdn_profiles.json b/profile_specs/cdn_profiles.json deleted file mode 100644 index 52a8bd17b7..0000000000 --- a/profile_specs/cdn_profiles.json +++ /dev/null @@ -1,12 +0,0 @@ -[ - { - "name": "Latest", - "resourceTypes": { - "Microsoft.CDN" : { - "2017-04-02": ["*"] - } - }, - "output_dir": "../../../management/azure_mgmt_cdn/lib/profiles", - "individual_gem_profile": true - } -] \ No newline at end of file diff --git a/profile_specs/cognitive_services_profiles.json b/profile_specs/cognitive_services_profiles.json deleted file mode 100644 index d82ee39e63..0000000000 --- a/profile_specs/cognitive_services_profiles.json +++ /dev/null @@ -1,12 +0,0 @@ -[ - { - "name": "Latest", - "resourceTypes": { - "Microsoft.CognitiveServices" : { - "2017-04-18": ["*"] - } - }, - "output_dir": "../../../management/azure_mgmt_cognitive_services/lib/profiles", - "individual_gem_profile": true - } -] \ No newline at end of file diff --git a/profile_specs/commerce_profiles.json b/profile_specs/commerce_profiles.json deleted file mode 100644 index 12949d4330..0000000000 --- a/profile_specs/commerce_profiles.json +++ /dev/null @@ -1,12 +0,0 @@ -[ - { - "name": "Latest", - "resourceTypes": { - "Microsoft.Commerce" : { - "2015-06-01-preview": ["*"] - } - }, - "output_dir": "../../../management/azure_mgmt_commerce/lib/profiles", - "individual_gem_profile": true - } -] \ No newline at end of file diff --git a/profile_specs/compute_profiles.json b/profile_specs/compute_profiles.json deleted file mode 100644 index e33c9dd7ab..0000000000 --- a/profile_specs/compute_profiles.json +++ /dev/null @@ -1,22 +0,0 @@ -[ - { - "name": "V2017_03_09", - "resourceTypes": { - "Microsoft.Compute" : { - "2016-03-30": ["*"] - } - }, - "output_dir": "../../../management/azure_mgmt_compute/lib/profiles", - "individual_gem_profile": true - }, - { - "name": "Latest", - "resourceTypes": { - "Microsoft.Compute" : { - "2017-03-30": ["*"] - } - }, - "output_dir": "../../../management/azure_mgmt_compute/lib/profiles", - "individual_gem_profile": true - } -] \ No newline at end of file diff --git a/profile_specs/consumption_profiles.json b/profile_specs/consumption_profiles.json deleted file mode 100644 index b0f0776927..0000000000 --- a/profile_specs/consumption_profiles.json +++ /dev/null @@ -1,12 +0,0 @@ -[ - { - "name": "Latest", - "resourceTypes": { - "Microsoft.Consumption" : { - "2017-04-24-preview": ["*"] - } - }, - "output_dir": "../../../management/azure_mgmt_consumption/lib/profiles", - "individual_gem_profile": true - } -] \ No newline at end of file diff --git a/profile_specs/container_instance_profiles.json b/profile_specs/container_instance_profiles.json deleted file mode 100644 index f2e7d050ed..0000000000 --- a/profile_specs/container_instance_profiles.json +++ /dev/null @@ -1,12 +0,0 @@ -[ - { - "name": "Latest", - "resourceTypes": { - "Microsoft.ContainerInstance" : { - "2017-08-01-preview": ["*"] - } - }, - "output_dir": "../../../management/azure_mgmt_container_instance/lib/profiles", - "individual_gem_profile": true - } -] \ No newline at end of file diff --git a/profile_specs/container_registry_profiles.json b/profile_specs/container_registry_profiles.json deleted file mode 100644 index a632f64260..0000000000 --- a/profile_specs/container_registry_profiles.json +++ /dev/null @@ -1,12 +0,0 @@ -[ - { - "name": "Latest", - "resourceTypes": { - "Microsoft.ContainerRegistry" : { - "2017-10-01": ["*"] - } - }, - "output_dir": "../../../management/azure_mgmt_container_registry/lib/profiles", - "individual_gem_profile": true - } -] \ No newline at end of file diff --git a/profile_specs/container_service_profiles.json b/profile_specs/container_service_profiles.json deleted file mode 100644 index 81e8828389..0000000000 --- a/profile_specs/container_service_profiles.json +++ /dev/null @@ -1,12 +0,0 @@ -[ - { - "name": "Latest", - "resourceTypes": { - "Microsoft.ContainerService" : { - "2017-01-31": ["*"] - } - }, - "output_dir": "../../../management/azure_mgmt_container_service/lib/profiles", - "individual_gem_profile": true - } -] \ No newline at end of file diff --git a/profile_specs/customer_insights_profiles.json b/profile_specs/customer_insights_profiles.json deleted file mode 100644 index 74da61efb3..0000000000 --- a/profile_specs/customer_insights_profiles.json +++ /dev/null @@ -1,12 +0,0 @@ -[ - { - "name": "Latest", - "resourceTypes": { - "Microsoft.CustomerInsights" : { - "2017-04-26": ["*"] - } - }, - "output_dir": "../../../management/azure_mgmt_customer_insights/lib/profiles", - "individual_gem_profile": true - } -] \ No newline at end of file diff --git a/profile_specs/datalake_analytics_profiles.json b/profile_specs/datalake_analytics_profiles.json deleted file mode 100644 index fcf6a019ea..0000000000 --- a/profile_specs/datalake_analytics_profiles.json +++ /dev/null @@ -1,12 +0,0 @@ -[ - { - "name": "Latest", - "resourceTypes": { - "Microsoft.DataLakeAnalytics" : { - "2016-11-01": ["*"] - } - }, - "output_dir": "../../../management/azure_mgmt_datalake_analytics/lib/profiles", - "individual_gem_profile": true - } -] \ No newline at end of file diff --git a/profile_specs/datalake_store_profiles.json b/profile_specs/datalake_store_profiles.json deleted file mode 100644 index 8d0a21cc2d..0000000000 --- a/profile_specs/datalake_store_profiles.json +++ /dev/null @@ -1,12 +0,0 @@ -[ - { - "name": "Latest", - "resourceTypes": { - "Microsoft.DataLakeStore" : { - "2016-11-01": ["*"] - } - }, - "output_dir": "../../../management/azure_mgmt_datalake_store/lib/profiles", - "individual_gem_profile": true - } -] \ No newline at end of file diff --git a/profile_specs/devtestlabs_profiles.json b/profile_specs/devtestlabs_profiles.json deleted file mode 100644 index 9f77d490f6..0000000000 --- a/profile_specs/devtestlabs_profiles.json +++ /dev/null @@ -1,12 +0,0 @@ -[ - { - "name": "Latest", - "resourceTypes": { - "Microsoft.DevTestLabs" : { - "2016-05-15": ["*"] - } - }, - "output_dir": "../../../management/azure_mgmt_devtestlabs/lib/profiles", - "individual_gem_profile": true - } -] \ No newline at end of file diff --git a/profile_specs/dns_profiles.json b/profile_specs/dns_profiles.json deleted file mode 100644 index e03dacca72..0000000000 --- a/profile_specs/dns_profiles.json +++ /dev/null @@ -1,12 +0,0 @@ -[ - { - "name": "Latest", - "resourceTypes": { - "Microsoft.Dns" : { - "2016-04-01": ["*"] - } - }, - "output_dir": "../../../management/azure_mgmt_dns/lib/profiles", - "individual_gem_profile": true - } -] \ No newline at end of file diff --git a/profile_specs/event_grid_profiles.json b/profile_specs/event_grid_profiles.json deleted file mode 100644 index a3ca3673df..0000000000 --- a/profile_specs/event_grid_profiles.json +++ /dev/null @@ -1,12 +0,0 @@ -[ - { - "name": "Latest", - "resourceTypes": { - "Microsoft.EventGrid" : { - "2017-09-15-preview": ["*"] - } - }, - "output_dir": "../../../management/azure_mgmt_event_grid/lib/profiles", - "individual_gem_profile": true - } -] \ No newline at end of file diff --git a/profile_specs/event_hub_profiles.json b/profile_specs/event_hub_profiles.json deleted file mode 100644 index aa0928ca36..0000000000 --- a/profile_specs/event_hub_profiles.json +++ /dev/null @@ -1,12 +0,0 @@ -[ - { - "name": "Latest", - "resourceTypes": { - "Microsoft.EventHub" : { - "2017-04-01": ["*"] - } - }, - "output_dir": "../../../management/azure_mgmt_event_hub/lib/profiles", - "individual_gem_profile": true - } -] \ No newline at end of file diff --git a/profile_specs/features_profiles.json b/profile_specs/features_profiles.json deleted file mode 100644 index 32582750a6..0000000000 --- a/profile_specs/features_profiles.json +++ /dev/null @@ -1,22 +0,0 @@ -[ - { - "name": "V2017_03_09", - "resourceTypes": { - "Microsoft.Features" : { - "2015-12-01": ["*"] - } - }, - "output_dir": "../../../management/azure_mgmt_features/lib/profiles", - "individual_gem_profile": true - }, - { - "name": "Latest", - "resourceTypes": { - "Microsoft.Features" : { - "2015-12-01": ["*"] - } - }, - "output_dir": "../../../management/azure_mgmt_features/lib/profiles", - "individual_gem_profile": true - } -] \ No newline at end of file diff --git a/profile_specs/graph_profiles.json b/profile_specs/graph_profiles.json deleted file mode 100644 index 5f5a864377..0000000000 --- a/profile_specs/graph_profiles.json +++ /dev/null @@ -1,12 +0,0 @@ -[ - { - "name": "Latest", - "resourceTypes": { - "Microsoft.Graph" : { - "1.6": ["*"] - } - }, - "output_dir": "../../../management/azure_mgmt_graph/lib/profiles", - "individual_gem_profile": true - } -] \ No newline at end of file diff --git a/profile_specs/iot_hub_profiles.json b/profile_specs/iot_hub_profiles.json deleted file mode 100644 index 5b511ca9c9..0000000000 --- a/profile_specs/iot_hub_profiles.json +++ /dev/null @@ -1,12 +0,0 @@ -[ - { - "name": "Latest", - "resourceTypes": { - "Microsoft.IotHub" : { - "2017-07-01": ["*"] - } - }, - "output_dir": "../../../management/azure_mgmt_iot_hub/lib/profiles", - "individual_gem_profile": true - } -] \ No newline at end of file diff --git a/profile_specs/key_vault_profiles.json b/profile_specs/key_vault_profiles.json deleted file mode 100644 index 80996a80b6..0000000000 --- a/profile_specs/key_vault_profiles.json +++ /dev/null @@ -1,12 +0,0 @@ -[ - { - "name": "Latest", - "resourceTypes": { - "Microsoft.KeyVault" : { - "2016-10-01": ["*"] - } - }, - "output_dir": "../../../management/azure_mgmt_key_vault/lib/profiles", - "individual_gem_profile": true - } -] \ No newline at end of file diff --git a/profile_specs/links_profiles.json b/profile_specs/links_profiles.json deleted file mode 100644 index c9dcdd065e..0000000000 --- a/profile_specs/links_profiles.json +++ /dev/null @@ -1,22 +0,0 @@ -[ - { - "name": "V2017_03_09", - "resourceTypes": { - "Microsoft.Links" : { - "2016-09-01": ["*"] - } - }, - "output_dir": "../../../management/azure_mgmt_links/lib/profiles", - "individual_gem_profile": true - }, - { - "name": "Latest", - "resourceTypes": { - "Microsoft.Links" : { - "2016-09-01": ["*"] - } - }, - "output_dir": "../../../management/azure_mgmt_links/lib/profiles", - "individual_gem_profile": true - } -] \ No newline at end of file diff --git a/profile_specs/locks_profiles.json b/profile_specs/locks_profiles.json deleted file mode 100644 index c20333ead8..0000000000 --- a/profile_specs/locks_profiles.json +++ /dev/null @@ -1,22 +0,0 @@ -[ - { - "name": "V2017_03_09", - "resourceTypes": { - "Microsoft.Locks" : { - "2015-01-01": ["*"] - } - }, - "output_dir": "../../../management/azure_mgmt_locks/lib/profiles", - "individual_gem_profile": true - }, - { - "name": "Latest", - "resourceTypes": { - "Microsoft.Locks" : { - "2016-09-01": ["*"] - } - }, - "output_dir": "../../../management/azure_mgmt_locks/lib/profiles", - "individual_gem_profile": true - } -] \ No newline at end of file diff --git a/profile_specs/logic_profiles.json b/profile_specs/logic_profiles.json deleted file mode 100644 index 08e08cd885..0000000000 --- a/profile_specs/logic_profiles.json +++ /dev/null @@ -1,12 +0,0 @@ -[ - { - "name": "Latest", - "resourceTypes": { - "Microsoft.Logic" : { - "2016-06-01": ["*"] - } - }, - "output_dir": "../../../management/azure_mgmt_logic/lib/profiles", - "individual_gem_profile": true - } -] \ No newline at end of file diff --git a/profile_specs/machine_learning_profiles.json b/profile_specs/machine_learning_profiles.json deleted file mode 100644 index ec4ce8fcc7..0000000000 --- a/profile_specs/machine_learning_profiles.json +++ /dev/null @@ -1,12 +0,0 @@ -[ - { - "name": "Latest", - "resourceTypes": { - "Microsoft.MachineLearning" : { - "2017-01-01": ["*"] - } - }, - "output_dir": "../../../management/azure_mgmt_machine_learning/lib/profiles", - "individual_gem_profile": true - } -] \ No newline at end of file diff --git a/profile_specs/managed_applications_profiles.json b/profile_specs/managed_applications_profiles.json deleted file mode 100644 index 6326467dfb..0000000000 --- a/profile_specs/managed_applications_profiles.json +++ /dev/null @@ -1,12 +0,0 @@ -[ - { - "name": "Latest", - "resourceTypes": { - "Microsoft.ManagedApplications" : { - "2016-09-01-preview": ["*"] - } - }, - "output_dir": "../../../management/azure_mgmt_managed_applications/lib/profiles", - "individual_gem_profile": true - } -] \ No newline at end of file diff --git a/profile_specs/marketplace_ordering_profiles.json b/profile_specs/marketplace_ordering_profiles.json deleted file mode 100644 index 3307d4fb12..0000000000 --- a/profile_specs/marketplace_ordering_profiles.json +++ /dev/null @@ -1,12 +0,0 @@ -[ - { - "name": "Latest", - "resourceTypes": { - "Microsoft.MarketplaceOrdering" : { - "2015-06-01": ["*"] - } - }, - "output_dir": "../../../management/azure_mgmt_marketplace_ordering/lib/profiles", - "individual_gem_profile": true - } -] \ No newline at end of file diff --git a/profile_specs/media_services_profiles.json b/profile_specs/media_services_profiles.json deleted file mode 100644 index f683a7418c..0000000000 --- a/profile_specs/media_services_profiles.json +++ /dev/null @@ -1,12 +0,0 @@ -[ - { - "name": "Latest", - "resourceTypes": { - "Microsoft.MediaServices" : { - "2015-10-01": ["*"] - } - }, - "output_dir": "../../../management/azure_mgmt_media_services/lib/profiles", - "individual_gem_profile": true - } -] \ No newline at end of file diff --git a/profile_specs/mobile_engagement_profiles.json b/profile_specs/mobile_engagement_profiles.json deleted file mode 100644 index 3dbd720b7c..0000000000 --- a/profile_specs/mobile_engagement_profiles.json +++ /dev/null @@ -1,12 +0,0 @@ -[ - { - "name": "Latest", - "resourceTypes": { - "Microsoft.MobileEngagement" : { - "2014-12-01": ["*"] - } - }, - "output_dir": "../../../management/azure_mgmt_mobile_engagement/lib/profiles", - "individual_gem_profile": true - } -] \ No newline at end of file diff --git a/profile_specs/monitor_profiles.json b/profile_specs/monitor_profiles.json deleted file mode 100644 index 898e90836a..0000000000 --- a/profile_specs/monitor_profiles.json +++ /dev/null @@ -1,15 +0,0 @@ -[ - { - "name": "Latest", - "resourceTypes": { - "Microsoft.Monitor" : { - "2015-04-01": ["*"], - "2016-03-01": ["*"], - "2017-04-01": ["*"], - "2017-05-01-preview": ["*"] - } - }, - "output_dir": "../../../management/azure_mgmt_monitor/lib/profiles", - "individual_gem_profile": true - } -] \ No newline at end of file diff --git a/profile_specs/network_profiles.json b/profile_specs/network_profiles.json deleted file mode 100644 index 171082868d..0000000000 --- a/profile_specs/network_profiles.json +++ /dev/null @@ -1,22 +0,0 @@ -[ - { - "name": "V2017_03_09", - "resourceTypes": { - "Microsoft.Network" : { - "2015-06-15": ["*"] - } - }, - "output_dir": "../../../management/azure_mgmt_network/lib/profiles", - "individual_gem_profile": true - }, - { - "name": "Latest", - "resourceTypes": { - "Microsoft.Network" : { - "2017-09-01": ["*"] - } - }, - "output_dir": "../../../management/azure_mgmt_network/lib/profiles", - "individual_gem_profile": true - } -] \ No newline at end of file diff --git a/profile_specs/notification_hubs_profiles.json b/profile_specs/notification_hubs_profiles.json deleted file mode 100644 index 01fa6c5d14..0000000000 --- a/profile_specs/notification_hubs_profiles.json +++ /dev/null @@ -1,12 +0,0 @@ -[ - { - "name": "Latest", - "resourceTypes": { - "Microsoft.NotificationHubs" : { - "2017-04-01": ["*"] - } - }, - "output_dir": "../../../management/azure_mgmt_notification_hubs/lib/profiles", - "individual_gem_profile": true - } -] \ No newline at end of file diff --git a/profile_specs/operational_insights_profiles.json b/profile_specs/operational_insights_profiles.json deleted file mode 100644 index 682c22cb2e..0000000000 --- a/profile_specs/operational_insights_profiles.json +++ /dev/null @@ -1,13 +0,0 @@ -[ - { - "name": "Latest", - "resourceTypes": { - "Microsoft.OperationalInsights" : { - "2015-03-20": ["*"], - "2015-11-01-preview": ["*"] - } - }, - "output_dir": "../../../management/azure_mgmt_operational_insights/lib/profiles", - "individual_gem_profile": true - } -] \ No newline at end of file diff --git a/profile_specs/policy_profiles.json b/profile_specs/policy_profiles.json deleted file mode 100644 index 2107546b6b..0000000000 --- a/profile_specs/policy_profiles.json +++ /dev/null @@ -1,23 +0,0 @@ -[ - { - "name": "V2017_03_09", - "resourceTypes": { - "Microsoft.Policy" : { - "2015-10-01-preview": ["*"] - } - }, - "output_dir": "../../../management/azure_mgmt_policy/lib/profiles", - "individual_gem_profile": true - }, - { - "name": "Latest", - "resourceTypes": { - "Microsoft.Policy" : { - "2016-12-01": ["*"], - "2017-06-01-preview": ["*"] - } - }, - "output_dir": "../../../management/azure_mgmt_policy/lib/profiles", - "individual_gem_profile": true - } -] \ No newline at end of file diff --git a/profile_specs/powerbi_embedded_profiles.json b/profile_specs/powerbi_embedded_profiles.json deleted file mode 100644 index 7c671578a3..0000000000 --- a/profile_specs/powerbi_embedded_profiles.json +++ /dev/null @@ -1,12 +0,0 @@ -[ - { - "name": "Latest", - "resourceTypes": { - "Microsoft.PowerBiEmbedded" : { - "2016-01-29": ["*"] - } - }, - "output_dir": "../../../management/azure_mgmt_powerbi_embedded/lib/profiles", - "individual_gem_profile": true - } -] \ No newline at end of file diff --git a/profile_specs/profiles.json b/profile_specs/profiles.json index 7bc703c0e7..7b07437d84 100644 --- a/profile_specs/profiles.json +++ b/profile_specs/profiles.json @@ -1,297 +1,1022 @@ -[ - { - "name": "V2017_03_09", - "resourceTypes": { - "Microsoft.Storage": { - "2015-06-15": ["*"] - }, - "Microsoft.Network" : { - "2015-06-15": ["*"] - }, - "Microsoft.Compute" : { - "2016-03-30": ["*"] - }, - "Microsoft.Features" : { - "2015-12-01": ["*"] - }, - "Microsoft.Links" : { - "2016-09-01": ["*"] - }, - "Microsoft.Locks" : { - "2015-01-01": ["*"] - }, - "Microsoft.Policy" : { - "2015-10-01-preview": ["*"] - }, - "Microsoft.Resources" : { - "2016-02-01": ["*"] - }, - "Microsoft.Subscriptions" : { - "2016-06-01": ["*"] - } +{ + "rollup": { + "azure_sdk": [ + { + "name": "V2017_03_09", + "resourceTypes": { + "Microsoft.Storage": { + "2015-06-15": ["*"] + }, + "Microsoft.Network" : { + "2015-06-15": ["*"] + }, + "Microsoft.Compute" : { + "2016-03-30": ["*"] + }, + "Microsoft.Features" : { + "2015-12-01": ["*"] + }, + "Microsoft.Links" : { + "2016-09-01": ["*"] + }, + "Microsoft.Locks" : { + "2015-01-01": ["*"] + }, + "Microsoft.Policy" : { + "2015-10-01-preview": ["*"] + }, + "Microsoft.Resources" : { + "2016-02-01": ["*"] + }, + "Microsoft.Subscriptions" : { + "2016-06-01": ["*"] + } + }, + "output_dir": "azure_sdk/lib" + }, + { + "name": "Latest", + "resourceTypes": { + "Microsoft.AnalysisServices": { + "2017-07-14": ["*"] + }, + "Microsoft.Authorization": { + "2015-07-01": ["*"] + }, + "Microsoft.Automation": { + "2015-10-31": ["*"] + }, + "Microsoft.Batch": { + "2017-05-01": ["*"] + }, + "Microsoft.Billing": { + "2017-04-24-preview": ["*"] + }, + "Microsoft.CDN": { + "2017-04-02": ["*"] + }, + "Microsoft.CognitiveServices": { + "2017-04-18": ["*"] + }, + "Microsoft.Commerce": { + "2015-06-01-preview": ["*"] + }, + "Microsoft.Compute": { + "2017-03-30": ["*"] + }, + "Microsoft.Consumption": { + "2017-04-24-preview": ["*"] + }, + "Microsoft.ContainerInstance": { + "2017-08-01-preview": ["*"] + }, + "Microsoft.ContainerRegistry": { + "2017-10-01": ["*"] + }, + "Microsoft.ContainerService": { + "2017-01-31": ["*"] + }, + "Microsoft.CustomerInsights": { + "2017-04-26": ["*"] + }, + "Microsoft.DataLakeAnalytics": { + "2016-11-01": ["*"] + }, + "Microsoft.DataLakeStore": { + "2016-11-01": ["*"] + }, + "Microsoft.DevTestLabs": { + "2016-05-15": ["*"] + }, + "Microsoft.Dns": { + "2016-04-01": ["*"] + }, + "Microsoft.EventGrid": { + "2017-09-15-preview": ["*"] + }, + "Microsoft.EventHub": { + "2017-04-01": ["*"] + }, + "Microsoft.Features": { + "2015-12-01": ["*"] + }, + "Microsoft.Graph": { + "1.6": ["*"] + }, + "Microsoft.IotHub": { + "2017-07-01": ["*"] + }, + "Microsoft.KeyVault": { + "2016-10-01": ["*"] + }, + "Microsoft.Links": { + "2016-09-01": ["*"] + }, + "Microsoft.Locks": { + "2016-09-01": ["*"] + }, + "Microsoft.Logic": { + "2016-06-01": ["*"] + }, + "Microsoft.MachineLearning": { + "2017-01-01": ["*"] + }, + "Microsoft.ManagedApplications": { + "2016-09-01-preview": ["*"] + }, + "Microsoft.MarketplaceOrdering": { + "2015-06-01": ["*"] + }, + "Microsoft.MediaServices": { + "2015-10-01": ["*"] + }, + "Microsoft.MobileEngagement": { + "2014-12-01": ["*"] + }, + "Microsoft.Monitor": { + "2015-04-01": ["*"], + "2016-03-01": ["*"], + "2017-04-01": ["*"], + "2017-05-01-preview": ["*"] + }, + "Microsoft.Network": { + "2017-09-01": ["*"] + }, + "Microsoft.NotificationHubs": { + "2017-04-01": ["*"] + }, + "Microsoft.OperationalInsights": { + "2015-03-20": ["*"], + "2015-11-01-preview": ["*"] + }, + "Microsoft.Policy": { + "2016-12-01": ["*"], + "2017-06-01-preview": ["*"] + }, + "Microsoft.PowerBiEmbedded": { + "2016-01-29": ["*"] + }, + "Microsoft.RecoveryServices": { + "2016-06-01": ["*"], + "2016-12-01": ["*"] + }, + "Microsoft.RecoveryServicesBackup": { + "2016-08-10": ["*"], + "2016-12-01": ["*"], + "2017-07-01": ["*"] + }, + "Microsoft.RecoveryServicesSiteRecovery": { + "2016-08-10": ["*"] + }, + "Microsoft.Redis": { + "2017-02-01": ["*"] + }, + "Microsoft.Relay": { + "2017-04-01": ["*"] + }, + "Microsoft.Resources": { + "2017-05-10": ["*"] + }, + "Microsoft.ResourcesManagement": { + "2017-08-31-preview": ["*"] + }, + "Microsoft.Scheduler": { + "2016-03-01": ["*"] + }, + "Microsoft.Search": { + "2015-08-19": ["*"] + }, + "Microsoft.ServerManagement": { + "2016-07-01-preview": ["*"] + }, + "Microsoft.ServiceBus": { + "2017-04-01": ["*"] + }, + "Microsoft.ServiceFabric": { + "2016-09-01": ["*"] + }, + "Microsoft.SQL": { + "2014-04-01": ["*"], + "2015-05-01-preview": ["*"], + "2017-03-01-preview": ["*"] + }, + "Microsoft.StorSimple8000Series": { + "2017-06-01": ["*"] + }, + "Microsoft.Storage": { + "2017-06-01": ["*"] + }, + "Microsoft.StreamAnalytics": { + "2016-03-01": ["*"] + }, + "Microsoft.Subscriptions": { + "2016-06-01": ["*"] + }, + "Microsoft.TrafficManager": { + "2017-05-01": ["*"], + "2017-09-01-preview": ["*"] + }, + "Microsoft.Web": { + "2015-04-01": ["*"], + "2015-08-01": ["*"], + "2016-03-01": ["*"], + "2016-08-01": ["*"], + "2016-09-01": ["*"] + } + }, + "output_dir": "azure_sdk/lib" + } + ] }, - "defaultVersions": { - "Microsoft.Storage": "2015-06-15", - "Microsoft.Network" : "2015-06-15", - "Microsoft.Compute" : "2016-03-30", - "Microsoft.Features" : "2015-12-01", - "Microsoft.Links" : "2016-09-01", - "Microsoft.Locks" : "2015-01-01", - "Microsoft.Policy" : "2015-10-01-preview", - "Microsoft.Resources" : "2016-02-01", - "Microsoft.Subscriptions" : "2016-06-01" - }, - "output_dir": "../../../azure_sdk/lib" - }, - { - "name": "Latest", - "resourceTypes": { - "Microsoft.AnalysisServices": { - "2017-07-14": ["*"] - }, - "Microsoft.Authorization": { - "2015-07-01": ["*"] - }, - "Microsoft.Automation": { - "2015-10-31": ["*"] - }, - "Microsoft.Batch": { - "2017-05-01": ["*"] - }, - "Microsoft.Billing": { - "2017-04-24-preview": ["*"] - }, - "Microsoft.CDN": { - "2017-04-02": ["*"] - }, - "Microsoft.CognitiveServices": { - "2017-04-18": ["*"] - }, - "Microsoft.Commerce": { - "2015-06-01-preview": ["*"] - }, - "Microsoft.Compute": { - "2017-03-30": ["*"] - }, - "Microsoft.Consumption": { - "2017-04-24-preview": ["*"] - }, - "Microsoft.ContainerInstance": { - "2017-08-01-preview": ["*"] - }, - "Microsoft.ContainerRegistry": { - "2017-10-01": ["*"] - }, - "Microsoft.ContainerService": { - "2017-01-31": ["*"] - }, - "Microsoft.CustomerInsights": { - "2017-04-26": ["*"] - }, - "Microsoft.DataLakeAnalytics": { - "2016-11-01": ["*"] - }, - "Microsoft.DataLakeStore": { - "2016-11-01": ["*"] - }, - "Microsoft.DevTestLabs": { - "2016-05-15": ["*"] - }, - "Microsoft.Dns": { - "2016-04-01": ["*"] - }, - "Microsoft.EventGrid": { - "2017-09-15-preview": ["*"] - }, - "Microsoft.EventHub": { - "2017-04-01": ["*"] - }, - "Microsoft.Features": { - "2015-12-01": ["*"] - }, - "Microsoft.Graph": { - "1.6": ["*"] - }, - "Microsoft.IotHub": { - "2017-07-01": ["*"] - }, - "Microsoft.KeyVault": { - "2016-10-01": ["*"] - }, - "Microsoft.Links": { - "2016-09-01": ["*"] - }, - "Microsoft.Locks": { - "2016-09-01": ["*"] - }, - "Microsoft.Logic": { - "2016-06-01": ["*"] - }, - "Microsoft.MachineLearning": { - "2017-01-01": ["*"] - }, - "Microsoft.ManagedApplications": { - "2016-09-01-preview": ["*"] - }, - "Microsoft.MarketplaceOrdering": { - "2015-06-01": ["*"] - }, - "Microsoft.MediaServices": { - "2015-10-01": ["*"] - }, - "Microsoft.MobileEngagement": { - "2014-12-01": ["*"] - }, - "Microsoft.Monitor": { - "2015-04-01": ["*"], - "2016-03-01": ["*"], - "2017-04-01": ["*"], - "2017-05-01-preview": ["*"] - }, - "Microsoft.Network": { - "2017-09-01": ["*"] - }, - "Microsoft.NotificationHubs": { - "2017-04-01": ["*"] - }, - "Microsoft.OperationalInsights": { - "2015-03-20": ["*"], - "2015-11-01-preview": ["*"] - }, - "Microsoft.Policy": { - "2016-12-01": ["*"], - "2017-06-01-preview": ["*"] - }, - "Microsoft.PowerBiEmbedded": { - "2016-01-29": ["*"] - }, - "Microsoft.RecoveryServices": { - "2016-06-01": ["*"], - "2016-12-01": ["*"] - }, - "Microsoft.RecoveryServicesBackup": { - "2016-08-10": ["*"], - "2016-12-01": ["*"], - "2017-07-01": ["*"] - }, - "Microsoft.RecoveryServicesSiteRecovery": { - "2016-08-10": ["*"] - }, - "Microsoft.Redis": { - "2017-02-01": ["*"] - }, - "Microsoft.Relay": { - "2017-04-01": ["*"] - }, - "Microsoft.Resources": { - "2017-05-10": ["*"] - }, - "Microsoft.ResourcesManagement": { - "2017-08-31-preview": ["*"] - }, - "Microsoft.Scheduler": { - "2016-03-01": ["*"] - }, - "Microsoft.Search": { - "2015-08-19": ["*"] - }, - "Microsoft.ServerManagement": { - "2016-07-01-preview": ["*"] - }, - "Microsoft.ServiceBus": { - "2017-04-01": ["*"] - }, - "Microsoft.ServiceFabric": { - "2016-09-01": ["*"] - }, - "Microsoft.SQL": { - "2014-04-01": ["*"], - "2015-05-01-preview": ["*"], - "2017-03-01-preview": ["*"] - }, - "Microsoft.StorSimple8000Series": { - "2017-06-01": ["*"] - }, - "Microsoft.Storage": { - "2017-06-01": ["*"] - }, - "Microsoft.StreamAnalytics": { - "2016-03-01": ["*"] - }, - "Microsoft.Subscriptions": { - "2016-06-01": ["*"] - }, - "Microsoft.TrafficManager": { - "2017-05-01": ["*"], - "2017-09-01-preview": ["*"] - }, - "Microsoft.Web": { - "2015-04-01": ["*"], - "2015-08-01": ["*"], - "2016-03-01": ["*"], - "2016-08-01": ["*"], - "2016-09-01": ["*"] - } - }, - "defaultVersions": { - "Microsoft.AnalysisServices": "2017-07-14", - "Microsoft.Authorization": "2015-07-01", - "Microsoft.Automation": "2015-10-31", - "Microsoft.Batch": "2017-05-01", - "Microsoft.Billing": "2017-04-24-preview", - "Microsoft.CDN": "2017-04-02", - "Microsoft.CognitiveServices": "2017-04-18", - "Microsoft.Commerce": "2015-06-01-preview", - "Microsoft.Compute": "2017-03-30", - "Microsoft.Consumption": "2017-04-24-preview", - "Microsoft.ContainerInstance": "2017-08-01-preview", - "Microsoft.ContainerRegistry": "2017-10-01", - "Microsoft.ContainerService": "2017-01-31", - "Microsoft.CustomerInsights": "2017-04-26", - "Microsoft.DataLakeAnalytics": "2016-11-01", - "Microsoft.DataLakeStore": "2016-11-01", - "Microsoft.DevTestLabs": "2016-05-15", - "Microsoft.Dns": "2016-04-01", - "Microsoft.EventGrid": "2017-09-15-preview", - "Microsoft.EventHub": "2017-04-01", - "Microsoft.Features": "2015-12-01", - "Microsoft.Graph": "1.6", - "Microsoft.IotHub": "2017-07-01", - "Microsoft.KeyVault": "2016-10-01", - "Microsoft.Links": "2016-09-01", - "Microsoft.Locks": "2016-09-01", - "Microsoft.Logic": "2016-06-01", - "Microsoft.MachineLearning": "2017-01-01", - "Microsoft.ManagedApplications": "2016-09-01-preview", - "Microsoft.MarketplaceOrdering": "2015-06-01", - "Microsoft.MediaServices": "2015-10-01", - "Microsoft.MobileEngagement": "2014-12-01", - "Microsoft.Monitor": "2017-05-01-preview", - "Microsoft.Network": "2017-09-01", - "Microsoft.NotificationHubs": "2017-04-01", - "Microsoft.OperationalInsights": "2015-11-01-preview", - "Microsoft.Policy": "2017-06-01-preview", - "Microsoft.PowerBiEmbedded": "2016-01-29", - "Microsoft.RecoveryServices": "2016-12-01", - "Microsoft.RecoveryServicesBackup": "2017-07-01", - "Microsoft.RecoveryServicesSiteRecovery": "2016-08-10", - "Microsoft.Redis": "2017-02-01", - "Microsoft.Relay": "2017-04-01", - "Microsoft.Resources": "2017-05-10", - "Microsoft.ResourcesManagement": "2017-08-31-preview", - "Microsoft.Scheduler": "2016-03-01", - "Microsoft.Search": "2015-08-19", - "Microsoft.ServerManagement": "2016-07-01-preview", - "Microsoft.ServiceBus": "2017-04-01", - "Microsoft.ServiceFabric": "2016-09-01", - "Microsoft.SQL": "2017-03-01-preview", - "Microsoft.StorSimple8000Series": "2017-06-01", - "Microsoft.Storage": "2017-06-01", - "Microsoft.StreamAnalytics": "2016-03-01", - "Microsoft.Subscriptions": "2016-06-01", - "Microsoft.TrafficManager": "2017-09-01-preview", - "Microsoft.Web": "2016-09-01" - }, - "output_dir": "../../../azure_sdk/lib" - } -] \ No newline at end of file + "management" : { + "azure_mgmt_analysis_services": [ + { + "name": "Latest", + "resourceTypes": { + "Microsoft.AnalysisServices": { + "2017-07-14": ["*"] + } + }, + "output_dir": "management/azure_mgmt_analysis_services/lib/profiles", + "individual_gem_profile": true + } + ], + "azure_mgmt_authorization": [ + { + "name": "Latest", + "resourceTypes": { + "Microsoft.Authorization" : { + "2015-07-01": ["*"] + } + }, + "output_dir": "management/azure_mgmt_authorization/lib/profiles", + "individual_gem_profile": true + } + ], + "azure_mgmt_automation": [ + { + "name": "Latest", + "resourceTypes": { + "Microsoft.Automation" : { + "2015-10-31": ["*"] + } + }, + "output_dir": "management/azure_mgmt_automation/lib/profiles", + "individual_gem_profile": true + } + ], + "azure_mgmt_batch": [ + { + "name": "Latest", + "resourceTypes": { + "Microsoft.Batch" : { + "2017-05-01": ["*"] + } + }, + "output_dir": "management/azure_mgmt_batch/lib/profiles", + "individual_gem_profile": true + } + ], + "azure_mgmt_billing": [ + { + "name": "Latest", + "resourceTypes": { + "Microsoft.Billing" : { + "2017-04-24-preview": ["*"] + } + }, + "output_dir": "management/azure_mgmt_billing/lib/profiles", + "individual_gem_profile": true + } + ], + "azure_mgmt_cdn": [ + { + "name": "Latest", + "resourceTypes": { + "Microsoft.CDN" : { + "2017-04-02": ["*"] + } + }, + "output_dir": "management/azure_mgmt_cdn/lib/profiles", + "individual_gem_profile": true + } + ], + "azure_mgmt_cognitive_services": [ + { + "name": "Latest", + "resourceTypes": { + "Microsoft.CognitiveServices" : { + "2017-04-18": ["*"] + } + }, + "output_dir": "management/azure_mgmt_cognitive_services/lib/profiles", + "individual_gem_profile": true + } + ], + "azure_mgmt_commerce": [ + { + "name": "Latest", + "resourceTypes": { + "Microsoft.Commerce" : { + "2015-06-01-preview": ["*"] + } + }, + "output_dir": "management/azure_mgmt_commerce/lib/profiles", + "individual_gem_profile": true + } + ], + "azure_mgmt_compute": [ + { + "name": "V2017_03_09", + "resourceTypes": { + "Microsoft.Compute" : { + "2016-03-30": ["*"] + } + }, + "output_dir": "management/azure_mgmt_compute/lib/profiles", + "individual_gem_profile": true + }, + { + "name": "Latest", + "resourceTypes": { + "Microsoft.Compute" : { + "2017-03-30": ["*"] + } + }, + "output_dir": "management/azure_mgmt_compute/lib/profiles", + "individual_gem_profile": true + } + ], + "azure_mgmt_consumption": [ + { + "name": "Latest", + "resourceTypes": { + "Microsoft.Consumption" : { + "2017-04-24-preview": ["*"] + } + }, + "output_dir": "management/azure_mgmt_consumption/lib/profiles", + "individual_gem_profile": true + } + ], + "azure_mgmt_container_instance": [ + { + "name": "Latest", + "resourceTypes": { + "Microsoft.ContainerInstance" : { + "2017-08-01-preview": ["*"] + } + }, + "output_dir": "management/azure_mgmt_container_instance/lib/profiles", + "individual_gem_profile": true + } + ], + "azure_mgmt_container_registry": [ + { + "name": "Latest", + "resourceTypes": { + "Microsoft.ContainerRegistry" : { + "2017-10-01": ["*"] + } + }, + "output_dir": "management/azure_mgmt_container_registry/lib/profiles", + "individual_gem_profile": true + } + ], + "azure_mgmt_container_service": [ + { + "name": "Latest", + "resourceTypes": { + "Microsoft.ContainerService" : { + "2017-01-31": ["*"] + } + }, + "output_dir": "management/azure_mgmt_container_service/lib/profiles", + "individual_gem_profile": true + } + ], + "azure_mgmt_customer_insights": [ + { + "name": "Latest", + "resourceTypes": { + "Microsoft.CustomerInsights" : { + "2017-04-26": ["*"] + } + }, + "output_dir": "management/azure_mgmt_customer_insights/lib/profiles", + "individual_gem_profile": true + } + ], + "azure_mgmt_datalake_analytics": [ + { + "name": "Latest", + "resourceTypes": { + "Microsoft.DataLakeAnalytics" : { + "2016-11-01": ["*"] + } + }, + "output_dir": "management/azure_mgmt_datalake_analytics/lib/profiles", + "individual_gem_profile": true + } + ], + "azure_mgmt_datalake_store": [ + { + "name": "Latest", + "resourceTypes": { + "Microsoft.DataLakeStore" : { + "2016-11-01": ["*"] + } + }, + "output_dir": "management/azure_mgmt_datalake_store/lib/profiles", + "individual_gem_profile": true + } + ], + "azure_mgmt_devtestlabs": [ + { + "name": "Latest", + "resourceTypes": { + "Microsoft.DevTestLabs" : { + "2016-05-15": ["*"] + } + }, + "output_dir": "management/azure_mgmt_devtestlabs/lib/profiles", + "individual_gem_profile": true + } + ], + "azure_mgmt_dns": [ + { + "name": "Latest", + "resourceTypes": { + "Microsoft.Dns" : { + "2016-04-01": ["*"] + } + }, + "output_dir": "management/azure_mgmt_dns/lib/profiles", + "individual_gem_profile": true + } + ], + "azure_mgmt_event_grid": [ + { + "name": "Latest", + "resourceTypes": { + "Microsoft.EventGrid" : { + "2017-09-15-preview": ["*"] + } + }, + "output_dir": "management/azure_mgmt_event_grid/lib/profiles", + "individual_gem_profile": true + } + ], + "azure_mgmt_event_hub": [ + { + "name": "Latest", + "resourceTypes": { + "Microsoft.EventHub" : { + "2017-04-01": ["*"] + } + }, + "output_dir": "management/azure_mgmt_event_hub/lib/profiles", + "individual_gem_profile": true + } + ], + "azure_mgmt_features": [ + { + "name": "V2017_03_09", + "resourceTypes": { + "Microsoft.Features" : { + "2015-12-01": ["*"] + } + }, + "output_dir": "management/azure_mgmt_features/lib/profiles", + "individual_gem_profile": true + }, + { + "name": "Latest", + "resourceTypes": { + "Microsoft.Features" : { + "2015-12-01": ["*"] + } + }, + "output_dir": "management/azure_mgmt_features/lib/profiles", + "individual_gem_profile": true + } + ], + "azure_mgmt_graph": [ + { + "name": "Latest", + "resourceTypes": { + "Microsoft.Graph" : { + "1.6": ["*"] + } + }, + "output_dir": "management/azure_mgmt_graph/lib/profiles", + "individual_gem_profile": true + } + ], + "azure_mgmt_iot_hub": [ + { + "name": "Latest", + "resourceTypes": { + "Microsoft.IotHub" : { + "2017-07-01": ["*"] + } + }, + "output_dir": "management/azure_mgmt_iot_hub/lib/profiles", + "individual_gem_profile": true + } + ], + "azure_mgmt_key_vault": [ + { + "name": "Latest", + "resourceTypes": { + "Microsoft.KeyVault" : { + "2016-10-01": ["*"] + } + }, + "output_dir": "management/azure_mgmt_key_vault/lib/profiles", + "individual_gem_profile": true + } + ], + "azure_mgmt_links": [ + { + "name": "V2017_03_09", + "resourceTypes": { + "Microsoft.Links" : { + "2016-09-01": ["*"] + } + }, + "output_dir": "management/azure_mgmt_links/lib/profiles", + "individual_gem_profile": true + }, + { + "name": "Latest", + "resourceTypes": { + "Microsoft.Links" : { + "2016-09-01": ["*"] + } + }, + "output_dir": "management/azure_mgmt_links/lib/profiles", + "individual_gem_profile": true + } + ], + "azure_mgmt_locks": [ + { + "name": "V2017_03_09", + "resourceTypes": { + "Microsoft.Locks" : { + "2015-01-01": ["*"] + } + }, + "output_dir": "management/azure_mgmt_locks/lib/profiles", + "individual_gem_profile": true + }, + { + "name": "Latest", + "resourceTypes": { + "Microsoft.Locks" : { + "2016-09-01": ["*"] + } + }, + "output_dir": "management/azure_mgmt_locks/lib/profiles", + "individual_gem_profile": true + } + ], + "azure_mgmt_logic": [ + { + "name": "Latest", + "resourceTypes": { + "Microsoft.Logic" : { + "2016-06-01": ["*"] + } + }, + "output_dir": "management/azure_mgmt_logic/lib/profiles", + "individual_gem_profile": true + } + ], + "azure_mgmt_machine_learning": [ + { + "name": "Latest", + "resourceTypes": { + "Microsoft.MachineLearning" : { + "2017-01-01": ["*"] + } + }, + "output_dir": "management/azure_mgmt_machine_learning/lib/profiles", + "individual_gem_profile": true + } + ], + "azure_mgmt_managed_applications": [ + { + "name": "Latest", + "resourceTypes": { + "Microsoft.ManagedApplications" : { + "2016-09-01-preview": ["*"] + } + }, + "output_dir": "management/azure_mgmt_managed_applications/lib/profiles", + "individual_gem_profile": true + } + ], + "azure_mgmt_marketplace_ordering": [ + { + "name": "Latest", + "resourceTypes": { + "Microsoft.MarketplaceOrdering" : { + "2015-06-01": ["*"] + } + }, + "output_dir": "management/azure_mgmt_marketplace_ordering/lib/profiles", + "individual_gem_profile": true + } + ], + "azure_mgmt_media_services": [ + { + "name": "Latest", + "resourceTypes": { + "Microsoft.MediaServices" : { + "2015-10-01": ["*"] + } + }, + "output_dir": "management/azure_mgmt_media_services/lib/profiles", + "individual_gem_profile": true + } + ], + "azure_mgmt_mobile_engagement": [ + { + "name": "Latest", + "resourceTypes": { + "Microsoft.MobileEngagement" : { + "2014-12-01": ["*"] + } + }, + "output_dir": "management/azure_mgmt_mobile_engagement/lib/profiles", + "individual_gem_profile": true + } + ], + "azure_mgmt_monitor": [ + { + "name": "Latest", + "resourceTypes": { + "Microsoft.Monitor" : { + "2015-04-01": ["*"], + "2016-03-01": ["*"], + "2017-04-01": ["*"], + "2017-05-01-preview": ["*"] + } + }, + "output_dir": "management/azure_mgmt_monitor/lib/profiles", + "individual_gem_profile": true + } + ], + "azure_mgmt_network": [ + { + "name": "V2017_03_09", + "resourceTypes": { + "Microsoft.Network" : { + "2015-06-15": ["*"] + } + }, + "output_dir": "management/azure_mgmt_network/lib/profiles", + "individual_gem_profile": true + }, + { + "name": "Latest", + "resourceTypes": { + "Microsoft.Network" : { + "2017-09-01": ["*"] + } + }, + "output_dir": "management/azure_mgmt_network/lib/profiles", + "individual_gem_profile": true + } + ], + "azure_mgmt_notification_hubs": [ + { + "name": "Latest", + "resourceTypes": { + "Microsoft.NotificationHubs" : { + "2017-04-01": ["*"] + } + }, + "output_dir": "management/azure_mgmt_notification_hubs/lib/profiles", + "individual_gem_profile": true + } + ], + "azure_mgmt_operational_insights": [ + { + "name": "Latest", + "resourceTypes": { + "Microsoft.OperationalInsights" : { + "2015-03-20": ["*"], + "2015-11-01-preview": ["*"] + } + }, + "output_dir": "management/azure_mgmt_operational_insights/lib/profiles", + "individual_gem_profile": true + } + ], + "azure_mgmt_policy": [ + { + "name": "V2017_03_09", + "resourceTypes": { + "Microsoft.Policy" : { + "2015-10-01-preview": ["*"] + } + }, + "output_dir": "management/azure_mgmt_policy/lib/profiles", + "individual_gem_profile": true + }, + { + "name": "Latest", + "resourceTypes": { + "Microsoft.Policy" : { + "2016-12-01": ["*"], + "2017-06-01-preview": ["*"] + } + }, + "output_dir": "management/azure_mgmt_policy/lib/profiles", + "individual_gem_profile": true + } + ], + "azure_mgmt_powerbi_embedded": [ + { + "name": "Latest", + "resourceTypes": { + "Microsoft.PowerBiEmbedded" : { + "2016-01-29": ["*"] + } + }, + "output_dir": "management/azure_mgmt_powerbi_embedded/lib/profiles", + "individual_gem_profile": true + } + ], + "azure_mgmt_recovery_services_backup": [ + { + "name": "Latest", + "resourceTypes": { + "Microsoft.RecoveryServicesBackup" : { + "2016-08-10": ["*"], + "2016-12-01": ["*"], + "2017-07-01": ["*"] + } + }, + "output_dir": "management/azure_mgmt_recovery_services_backup/lib/profiles", + "individual_gem_profile": true + } + ], + "azure_mgmt_recovery_services": [ + { + "name": "Latest", + "resourceTypes": { + "Microsoft.RecoveryServices" : { + "2016-06-01": ["*"], + "2016-12-01": ["*"] + } + }, + "output_dir": "management/azure_mgmt_recovery_services/lib/profiles", + "individual_gem_profile": true + } + ], + "azure_mgmt_recovery_services_site_recovery": [ + { + "name": "Latest", + "resourceTypes": { + "Microsoft.RecoveryServicesSiteRecovery" : { + "2016-08-10": ["*"] + } + }, + "output_dir": "management/azure_mgmt_recovery_services_site_recovery/lib/profiles", + "individual_gem_profile": true + } + ], + "azure_mgmt_redis": [ + { + "name": "Latest", + "resourceTypes": { + "Microsoft.Redis" : { + "2017-02-01": ["*"] + } + }, + "output_dir": "management/azure_mgmt_redis/lib/profiles", + "individual_gem_profile": true + } + ], + "azure_mgmt_relay": [ + { + "name": "Latest", + "resourceTypes": { + "Microsoft.Relay" : { + "2017-04-01": ["*"] + } + }, + "output_dir": "management/azure_mgmt_relay/lib/profiles", + "individual_gem_profile": true + } + ], + "azure_mgmt_resources_management": [ + { + "name": "Latest", + "resourceTypes": { + "Microsoft.ResourcesManagement" : { + "2017-08-31-preview": ["*"] + } + }, + "output_dir": "management/azure_mgmt_resources_management/lib/profiles", + "individual_gem_profile": true + } + ], + "azure_mgmt_resources": [ + { + "name": "V2017_03_09", + "resourceTypes": { + "Microsoft.Resources" : { + "2016-02-01": ["*"] + } + }, + "output_dir": "management/azure_mgmt_resources/lib/profiles", + "individual_gem_profile": true + }, + { + "name": "Latest", + "resourceTypes": { + "Microsoft.Resources" : { + "2017-05-10": ["*"] + } + }, + "output_dir": "management/azure_mgmt_resources/lib/profiles", + "individual_gem_profile": true + } + ], + "azure_mgmt_scheduler": [ + { + "name": "Latest", + "resourceTypes": { + "Microsoft.Scheduler" : { + "2016-03-01": ["*"] + } + }, + "output_dir": "management/azure_mgmt_scheduler/lib/profiles", + "individual_gem_profile": true + } + ], + "azure_mgmt_search": [ + { + "name": "Latest", + "resourceTypes": { + "Microsoft.Search" : { + "2015-08-19": ["*"] + } + }, + "output_dir": "management/azure_mgmt_search/lib/profiles", + "individual_gem_profile": true + } + ], + "azure_mgmt_server_management": [ + { + "name": "Latest", + "resourceTypes": { + "Microsoft.ServerManagement" : { + "2016-07-01-preview": ["*"] + } + }, + "output_dir": "management/azure_mgmt_server_management/lib/profiles", + "individual_gem_profile": true + } + ], + "azure_mgmt_service_bus": [ + { + "name": "Latest", + "resourceTypes": { + "Microsoft.ServiceBus" : { + "2017-04-01": ["*"] + } + }, + "output_dir": "management/azure_mgmt_service_bus/lib/profiles", + "individual_gem_profile": true + } + ], + "azure_mgmt_service_fabric": [ + { + "name": "Latest", + "resourceTypes": { + "Microsoft.ServiceFabric" : { + "2016-09-01": ["*"] + } + }, + "output_dir": "management/azure_mgmt_service_fabric/lib/profiles", + "individual_gem_profile": true + } + ], + "azure_mgmt_sql": [ + { + "name": "Latest", + "resourceTypes": { + "Microsoft.SQL" : { + "2014-04-01": ["*"], + "2015-05-01-preview": ["*"], + "2017-03-01-preview": ["*"] + } + }, + "output_dir": "management/azure_mgmt_sql/lib/profiles", + "individual_gem_profile": true + } + ], + "azure_mgmt_stor_simple8000_series": [ + { + "name": "Latest", + "resourceTypes": { + "Microsoft.StorSimple8000Series" : { + "2017-06-01": ["*"] + } + }, + "output_dir": "management/azure_mgmt_stor_simple8000_series/lib/profiles", + "individual_gem_profile": true + } + ], + "azure_mgmt_storage": [ + { + "name": "V2017_03_09", + "resourceTypes": { + "Microsoft.Storage" : { + "2015-06-15": ["*"] + } + }, + "output_dir": "management/azure_mgmt_storage/lib/profiles", + "individual_gem_profile": true + }, + { + "name": "Latest", + "resourceTypes": { + "Microsoft.Storage" : { + "2017-06-01": ["*"] + } + }, + "output_dir": "management/azure_mgmt_storage/lib/profiles", + "individual_gem_profile": true + } + ], + "azure_mgmt_stream_analytics": [ + { + "name": "Latest", + "resourceTypes": { + "Microsoft.StreamAnalytics" : { + "2016-03-01": ["*"] + } + }, + "output_dir": "management/azure_mgmt_stream_analytics/lib/profiles", + "individual_gem_profile": true + } + ], + "azure_mgmt_subscriptions": [ + { + "name": "V2017_03_09", + "resourceTypes": { + "Microsoft.Subscriptions" : { + "2016-06-01": ["*"] + } + }, + "output_dir": "management/azure_mgmt_subscriptions/lib/profiles", + "individual_gem_profile": true + }, + { + "name": "Latest", + "resourceTypes": { + "Microsoft.Subscriptions" : { + "2016-06-01": ["*"] + } + }, + "output_dir": "management/azure_mgmt_subscriptions/lib/profiles", + "individual_gem_profile": true + } + ], + "azure_mgmt_traffic_manager": [ + { + "name": "Latest", + "resourceTypes": { + "Microsoft.TrafficManager": { + "2017-05-01": ["*"], + "2017-09-01-preview": ["*"] + } + }, + "output_dir": "management/azure_mgmt_traffic_manager/lib/profiles", + "individual_gem_profile": true + } + ], + "azure_mgmt_web": [ + { + "name": "Latest", + "resourceTypes": { + "Microsoft.Web" : { + "2015-04-01": ["*"], + "2015-08-01": ["*"], + "2016-03-01": ["*"], + "2016-08-01": ["*"], + "2016-09-01": ["*"] + } + }, + "output_dir": "management/azure_mgmt_web/lib/profiles", + "individual_gem_profile": true + } + ] + } +} \ No newline at end of file diff --git a/profile_specs/recovery_services_backup_profiles.json b/profile_specs/recovery_services_backup_profiles.json deleted file mode 100644 index 3ae2b39fd4..0000000000 --- a/profile_specs/recovery_services_backup_profiles.json +++ /dev/null @@ -1,14 +0,0 @@ -[ - { - "name": "Latest", - "resourceTypes": { - "Microsoft.RecoveryServicesBackup" : { - "2016-08-10": ["*"], - "2016-12-01": ["*"], - "2017-07-01": ["*"] - } - }, - "output_dir": "../../../management/azure_mgmt_recovery_services_backup/lib/profiles", - "individual_gem_profile": true - } -] \ No newline at end of file diff --git a/profile_specs/recovery_services_profiles.json b/profile_specs/recovery_services_profiles.json deleted file mode 100644 index a55554189c..0000000000 --- a/profile_specs/recovery_services_profiles.json +++ /dev/null @@ -1,13 +0,0 @@ -[ - { - "name": "Latest", - "resourceTypes": { - "Microsoft.RecoveryServices" : { - "2016-06-01": ["*"], - "2016-12-01": ["*"] - } - }, - "output_dir": "../../../management/azure_mgmt_recovery_services/lib/profiles", - "individual_gem_profile": true - } -] \ No newline at end of file diff --git a/profile_specs/recovery_services_site_recovery_profiles.json b/profile_specs/recovery_services_site_recovery_profiles.json deleted file mode 100644 index 895db563a6..0000000000 --- a/profile_specs/recovery_services_site_recovery_profiles.json +++ /dev/null @@ -1,12 +0,0 @@ -[ - { - "name": "Latest", - "resourceTypes": { - "Microsoft.RecoveryServicesSiteRecovery" : { - "2016-08-10": ["*"] - } - }, - "output_dir": "../../../management/azure_mgmt_recovery_services_site_recovery/lib/profiles", - "individual_gem_profile": true - } -] \ No newline at end of file diff --git a/profile_specs/redis_profiles.json b/profile_specs/redis_profiles.json deleted file mode 100644 index eeb11e62cb..0000000000 --- a/profile_specs/redis_profiles.json +++ /dev/null @@ -1,12 +0,0 @@ -[ - { - "name": "Latest", - "resourceTypes": { - "Microsoft.Redis" : { - "2017-02-01": ["*"] - } - }, - "output_dir": "../../../management/azure_mgmt_redis/lib/profiles", - "individual_gem_profile": true - } -] \ No newline at end of file diff --git a/profile_specs/relay_profiles.json b/profile_specs/relay_profiles.json deleted file mode 100644 index 5bd322f91c..0000000000 --- a/profile_specs/relay_profiles.json +++ /dev/null @@ -1,12 +0,0 @@ -[ - { - "name": "Latest", - "resourceTypes": { - "Microsoft.Relay" : { - "2017-04-01": ["*"] - } - }, - "output_dir": "../../../management/azure_mgmt_relay/lib/profiles", - "individual_gem_profile": true - } -] \ No newline at end of file diff --git a/profile_specs/resources_management_profiles.json b/profile_specs/resources_management_profiles.json deleted file mode 100644 index 429e435590..0000000000 --- a/profile_specs/resources_management_profiles.json +++ /dev/null @@ -1,12 +0,0 @@ -[ - { - "name": "Latest", - "resourceTypes": { - "Microsoft.ResourcesManagement" : { - "2017-08-31-preview": ["*"] - } - }, - "output_dir": "../../../management/azure_mgmt_resources_management/lib/profiles", - "individual_gem_profile": true - } -] \ No newline at end of file diff --git a/profile_specs/resources_profiles.json b/profile_specs/resources_profiles.json deleted file mode 100644 index 367a301953..0000000000 --- a/profile_specs/resources_profiles.json +++ /dev/null @@ -1,22 +0,0 @@ -[ - { - "name": "V2017_03_09", - "resourceTypes": { - "Microsoft.Resources" : { - "2016-02-01": ["*"] - } - }, - "output_dir": "../../../management/azure_mgmt_resources/lib/profiles", - "individual_gem_profile": true - }, - { - "name": "Latest", - "resourceTypes": { - "Microsoft.Resources" : { - "2017-05-10": ["*"] - } - }, - "output_dir": "../../../management/azure_mgmt_resources/lib/profiles", - "individual_gem_profile": true - } -] \ No newline at end of file diff --git a/profile_specs/scheduler_profiles.json b/profile_specs/scheduler_profiles.json deleted file mode 100644 index a0d3028266..0000000000 --- a/profile_specs/scheduler_profiles.json +++ /dev/null @@ -1,12 +0,0 @@ -[ - { - "name": "Latest", - "resourceTypes": { - "Microsoft.Scheduler" : { - "2016-03-01": ["*"] - } - }, - "output_dir": "../../../management/azure_mgmt_scheduler/lib/profiles", - "individual_gem_profile": true - } -] \ No newline at end of file diff --git a/profile_specs/search_profiles.json b/profile_specs/search_profiles.json deleted file mode 100644 index 9ba9884379..0000000000 --- a/profile_specs/search_profiles.json +++ /dev/null @@ -1,12 +0,0 @@ -[ - { - "name": "Latest", - "resourceTypes": { - "Microsoft.Search" : { - "2015-08-19": ["*"] - } - }, - "output_dir": "../../../management/azure_mgmt_search/lib/profiles", - "individual_gem_profile": true - } -] \ No newline at end of file diff --git a/profile_specs/server_management_profiles.json b/profile_specs/server_management_profiles.json deleted file mode 100644 index ed68083752..0000000000 --- a/profile_specs/server_management_profiles.json +++ /dev/null @@ -1,12 +0,0 @@ -[ - { - "name": "Latest", - "resourceTypes": { - "Microsoft.ServerManagement" : { - "2016-07-01-preview": ["*"] - } - }, - "output_dir": "../../../management/azure_mgmt_server_management/lib/profiles", - "individual_gem_profile": true - } -] \ No newline at end of file diff --git a/profile_specs/service_bus_profiles.json b/profile_specs/service_bus_profiles.json deleted file mode 100644 index bdfd98cf30..0000000000 --- a/profile_specs/service_bus_profiles.json +++ /dev/null @@ -1,12 +0,0 @@ -[ - { - "name": "Latest", - "resourceTypes": { - "Microsoft.ServiceBus" : { - "2017-04-01": ["*"] - } - }, - "output_dir": "../../../management/azure_mgmt_service_bus/lib/profiles", - "individual_gem_profile": true - } -] \ No newline at end of file diff --git a/profile_specs/service_fabric_profiles.json b/profile_specs/service_fabric_profiles.json deleted file mode 100644 index 2e85aed7c5..0000000000 --- a/profile_specs/service_fabric_profiles.json +++ /dev/null @@ -1,12 +0,0 @@ -[ - { - "name": "Latest", - "resourceTypes": { - "Microsoft.ServiceFabric" : { - "2016-09-01": ["*"] - } - }, - "output_dir": "../../../management/azure_mgmt_service_fabric/lib/profiles", - "individual_gem_profile": true - } -] \ No newline at end of file diff --git a/profile_specs/sql_profiles.json b/profile_specs/sql_profiles.json deleted file mode 100644 index b577a6b109..0000000000 --- a/profile_specs/sql_profiles.json +++ /dev/null @@ -1,14 +0,0 @@ -[ - { - "name": "Latest", - "resourceTypes": { - "Microsoft.SQL" : { - "2014-04-01": ["*"], - "2015-05-01-preview": ["*"], - "2017-03-01-preview": ["*"] - } - }, - "output_dir": "../../../management/azure_mgmt_sql/lib/profiles", - "individual_gem_profile": true - } -] \ No newline at end of file diff --git a/profile_specs/stor_simple8000_series_profiles.json b/profile_specs/stor_simple8000_series_profiles.json deleted file mode 100644 index 673fde9691..0000000000 --- a/profile_specs/stor_simple8000_series_profiles.json +++ /dev/null @@ -1,12 +0,0 @@ -[ - { - "name": "Latest", - "resourceTypes": { - "Microsoft.StorSimple8000Series" : { - "2017-06-01": ["*"] - } - }, - "output_dir": "../../../management/azure_mgmt_stor_simple8000_series/lib/profiles", - "individual_gem_profile": true - } -] \ No newline at end of file diff --git a/profile_specs/storage_profiles.json b/profile_specs/storage_profiles.json deleted file mode 100644 index eaba093050..0000000000 --- a/profile_specs/storage_profiles.json +++ /dev/null @@ -1,22 +0,0 @@ -[ - { - "name": "V2017_03_09", - "resourceTypes": { - "Microsoft.Storage" : { - "2015-06-15": ["*"] - } - }, - "output_dir": "../../../management/azure_mgmt_storage/lib/profiles", - "individual_gem_profile": true - }, - { - "name": "Latest", - "resourceTypes": { - "Microsoft.Storage" : { - "2017-06-01": ["*"] - } - }, - "output_dir": "../../../management/azure_mgmt_storage/lib/profiles", - "individual_gem_profile": true - } -] \ No newline at end of file diff --git a/profile_specs/stream_analytics_profiles.json b/profile_specs/stream_analytics_profiles.json deleted file mode 100644 index ae9d1118a7..0000000000 --- a/profile_specs/stream_analytics_profiles.json +++ /dev/null @@ -1,12 +0,0 @@ -[ - { - "name": "Latest", - "resourceTypes": { - "Microsoft.StreamAnalytics" : { - "2016-03-01": ["*"] - } - }, - "output_dir": "../../../management/azure_mgmt_stream_analytics/lib/profiles", - "individual_gem_profile": true - } -] \ No newline at end of file diff --git a/profile_specs/subscriptions_profiles.json b/profile_specs/subscriptions_profiles.json deleted file mode 100644 index 077aefac98..0000000000 --- a/profile_specs/subscriptions_profiles.json +++ /dev/null @@ -1,22 +0,0 @@ -[ - { - "name": "V2017_03_09", - "resourceTypes": { - "Microsoft.Subscriptions" : { - "2016-06-01": ["*"] - } - }, - "output_dir": "../../../management/azure_mgmt_subscriptions/lib/profiles", - "individual_gem_profile": true - }, - { - "name": "Latest", - "resourceTypes": { - "Microsoft.Subscriptions" : { - "2016-06-01": ["*"] - } - }, - "output_dir": "../../../management/azure_mgmt_subscriptions/lib/profiles", - "individual_gem_profile": true - } -] \ No newline at end of file diff --git a/profile_specs/traffic_manager_profiles.json b/profile_specs/traffic_manager_profiles.json deleted file mode 100644 index 2521555b7f..0000000000 --- a/profile_specs/traffic_manager_profiles.json +++ /dev/null @@ -1,13 +0,0 @@ -[ - { - "name": "Latest", - "resourceTypes": { - "Microsoft.TrafficManager": { - "2017-05-01": ["*"], - "2017-09-01-preview": ["*"] - } - }, - "output_dir": "../../../management/azure_mgmt_traffic_manager/lib/profiles", - "individual_gem_profile": true - } -] \ No newline at end of file diff --git a/profile_specs/web_profiles.json b/profile_specs/web_profiles.json deleted file mode 100644 index 9485bf53bb..0000000000 --- a/profile_specs/web_profiles.json +++ /dev/null @@ -1,16 +0,0 @@ -[ - { - "name": "Latest", - "resourceTypes": { - "Microsoft.Web" : { - "2015-04-01": ["*"], - "2015-08-01": ["*"], - "2016-03-01": ["*"], - "2016-08-01": ["*"], - "2016-09-01": ["*"] - } - }, - "output_dir": "../../../management/azure_mgmt_web/lib/profiles", - "individual_gem_profile": true - } -] \ No newline at end of file From 0b67a4e2cb551e6c2080967b1c8e31cb618d505d Mon Sep 17 00:00:00 2001 From: Sarangan Rajamanickam Date: Wed, 18 Oct 2017 22:42:45 -0700 Subject: [PATCH 2/6] Independent Versioning of Gems --- ARM_VERSION | 1 - GEMS_TO_RELEASE | 62 ++++++++++++++++++ GEM_VERSIONS | 64 +++++++++++++++++++ Rakefile | 106 +++++++++++++++++++------------ azure_sdk/azure_sdk.gemspec | 122 ++++++++++++++++++------------------ config.json | 107 ++----------------------------- 6 files changed, 259 insertions(+), 203 deletions(-) delete mode 100644 ARM_VERSION create mode 100644 GEMS_TO_RELEASE create mode 100644 GEM_VERSIONS diff --git a/ARM_VERSION b/ARM_VERSION deleted file mode 100644 index a551051694..0000000000 --- a/ARM_VERSION +++ /dev/null @@ -1 +0,0 @@ -0.15.0 diff --git a/GEMS_TO_RELEASE b/GEMS_TO_RELEASE new file mode 100644 index 0000000000..f09017ce57 --- /dev/null +++ b/GEMS_TO_RELEASE @@ -0,0 +1,62 @@ +{ + "rollup": ["azure_sdk"], + "management": [ + "azure_mgmt_analysis_services", + "azure_mgmt_authorization", + "azure_mgmt_automation", + "azure_mgmt_batch", + "azure_mgmt_billing", + "azure_mgmt_cdn", + "azure_mgmt_cognitive_services", + "azure_mgmt_commerce", + "azure_mgmt_compute", + "azure_mgmt_consumption", + "azure_mgmt_container_instance", + "azure_mgmt_container_registry", + "azure_mgmt_container_service", + "azure_mgmt_customer_insights", + "azure_mgmt_datalake_analytics", + "azure_mgmt_datalake_store", + "azure_mgmt_devtestlabs", + "azure_mgmt_dns", + "azure_mgmt_event_grid", + "azure_mgmt_event_hub", + "azure_mgmt_features", + "azure_mgmt_graph", + "azure_mgmt_iot_hub", + "azure_mgmt_key_vault", + "azure_mgmt_links", + "azure_mgmt_locks", + "azure_mgmt_logic", + "azure_mgmt_machine_learning", + "azure_mgmt_managed_applications", + "azure_mgmt_marketplace_ordering", + "azure_mgmt_media_services", + "azure_mgmt_mobile_engagement", + "azure_mgmt_monitor", + "azure_mgmt_network", + "azure_mgmt_notification_hubs", + "azure_mgmt_operational_insights", + "azure_mgmt_policy", + "azure_mgmt_powerbi_embedded", + "azure_mgmt_recovery_services", + "azure_mgmt_recovery_services_backup", + "azure_mgmt_recovery_services_site_recovery", + "azure_mgmt_redis", + "azure_mgmt_relay", + "azure_mgmt_resources", + "azure_mgmt_resources_management", + "azure_mgmt_scheduler", + "azure_mgmt_search", + "azure_mgmt_server_management", + "azure_mgmt_service_bus", + "azure_mgmt_service_fabric", + "azure_mgmt_sql", + "azure_mgmt_stor_simple8000_series", + "azure_mgmt_storage", + "azure_mgmt_stream_analytics", + "azure_mgmt_subscriptions", + "azure_mgmt_traffic_manager", + "azure_mgmt_web" + ] +} \ No newline at end of file diff --git a/GEM_VERSIONS b/GEM_VERSIONS new file mode 100644 index 0000000000..e7336f69e3 --- /dev/null +++ b/GEM_VERSIONS @@ -0,0 +1,64 @@ +{ + "rollup": { + "azure_sdk": "0.15.0" + }, + "management" : { + "azure_mgmt_analysis_services": "0.15.0", + "azure_mgmt_authorization": "0.15.0", + "azure_mgmt_automation": "0.15.0", + "azure_mgmt_batch": "0.15.0", + "azure_mgmt_billing": "0.15.0", + "azure_mgmt_cdn": "0.15.0", + "azure_mgmt_cognitive_services": "0.15.0", + "azure_mgmt_commerce": "0.15.0", + "azure_mgmt_compute": "0.15.0", + "azure_mgmt_consumption": "0.15.0", + "azure_mgmt_container_instance": "0.15.0", + "azure_mgmt_container_registry": "0.15.0", + "azure_mgmt_container_service": "0.15.0", + "azure_mgmt_customer_insights": "0.15.0", + "azure_mgmt_datalake_analytics": "0.15.0", + "azure_mgmt_datalake_store": "0.15.0", + "azure_mgmt_devtestlabs": "0.15.0", + "azure_mgmt_dns": "0.15.0", + "azure_mgmt_event_grid": "0.15.0", + "azure_mgmt_event_hub": "0.15.0", + "azure_mgmt_features": "0.15.0", + "azure_mgmt_graph": "0.15.0", + "azure_mgmt_iot_hub": "0.15.0", + "azure_mgmt_key_vault": "0.15.0", + "azure_mgmt_links": "0.15.0", + "azure_mgmt_locks": "0.15.0", + "azure_mgmt_logic": "0.15.0", + "azure_mgmt_machine_learning": "0.15.0", + "azure_mgmt_managed_applications": "0.15.0", + "azure_mgmt_marketplace_ordering": "0.15.0", + "azure_mgmt_media_services": "0.15.0", + "azure_mgmt_mobile_engagement": "0.15.0", + "azure_mgmt_monitor": "0.15.0", + "azure_mgmt_network": "0.15.0", + "azure_mgmt_notification_hubs": "0.15.0", + "azure_mgmt_operational_insights": "0.15.0", + "azure_mgmt_policy": "0.15.0", + "azure_mgmt_powerbi_embedded": "0.15.0", + "azure_mgmt_recovery_services": "0.15.0", + "azure_mgmt_recovery_services_backup": "0.15.0", + "azure_mgmt_recovery_services_site_recovery": "0.15.0", + "azure_mgmt_redis": "0.15.0", + "azure_mgmt_relay": "0.15.0", + "azure_mgmt_resources": "0.15.0", + "azure_mgmt_resources_management": "0.15.0", + "azure_mgmt_scheduler": "0.15.0", + "azure_mgmt_search": "0.15.0", + "azure_mgmt_server_management": "0.15.0", + "azure_mgmt_service_bus": "0.15.0", + "azure_mgmt_service_fabric": "0.15.0", + "azure_mgmt_sql": "0.15.0", + "azure_mgmt_stor_simple8000_series": "0.15.0", + "azure_mgmt_storage": "0.15.0", + "azure_mgmt_stream_analytics": "0.15.0", + "azure_mgmt_subscriptions": "0.15.0", + "azure_mgmt_traffic_manager": "0.15.0", + "azure_mgmt_web": "0.15.0" + } +} diff --git a/Rakefile b/Rakefile index ec1eb07faa..21b68e52bb 100644 --- a/Rakefile +++ b/Rakefile @@ -19,7 +19,8 @@ require 'os' require 'json' require 'fileutils' -version = File.read(File.expand_path('../ARM_VERSION', __FILE__)).strip +gem_versions = JSON.parse(File.read(File.expand_path('../GEM_VERSIONS', __FILE__)).strip) +gems_to_release = JSON.parse(File.read(File.expand_path('../GEMS_TO_RELEASE', __FILE__)).strip) GEMS_TO_IGNORE = ['azure_mgmt_insights'] REGEN_EXCLUDES = ['azure_sdk'] @@ -28,7 +29,7 @@ namespace :arm do desc 'Delete ./pkg for each of the Azure Resource Manager projects' task :clean do each_gem do - execute_and_stream(OS.windows? ? 'del /S /Q pkg 2>nul' : 'rm -rf ./pkg') + FileUtils.rm_rf('pkg') end end @@ -59,15 +60,24 @@ namespace :arm do end end - desc 'Push gem for each of the Azure Resource Manager projects' + desc 'Push gem for each of the Azure projects' task :release, [:key] => :build do |_, args| - each_gem do |dir| - # Delay for 10 seconds before publishing gem - puts "Going to sleep for 10 seconds before publishing #{dir} ..." - sleep(10) + gems_to_release.each do |key, gems| + gems.each do |gem| + if(key == 'rollup') + Dir.chdir("#{__dir__}/azure_sdk") + version = gem_versions['rollup'][gem] + elsif(key == 'management') + Dir.chdir("#{__dir__}/management/#{gem}") + version = gem_versions['management'][gem] + end + + # Delay for 10 seconds before publishing gem + puts "Going to sleep for 10 seconds before publishing #{gem} ..." + sleep(10) - # Using execute method so that keys are not logged onto console - execute("gem push ./pkg/#{dir}-#{version}.gem" + (args[:key].nil? ? '' : " -k #{args[:key]}")) + execute("gem push ./pkg/#{gem}-#{version}.gem" + (args[:key].nil? ? '' : " -k #{args[:key]}")) + end end end @@ -75,40 +85,44 @@ namespace :arm do task :regen => :clean_generated do json = get_config_file each_gem do |dir| # dir corresponds to each azure_mgmt_* folder - unless REGEN_EXCLUDES.include?(dir.to_s) - puts "\nGenerating #{dir}\n" - ar_base_command = "#{ENV.fetch('AUTOREST_LOC', 'autorest')}" - ar_base_command = "#{ar_base_command} --use=#{ENV.fetch('AUTOREST_RUBY_LOC')}" unless ENV.fetch('AUTOREST_RUBY_LOC', nil).nil? - puts "ar_base_command #{ar_base_command}" - md = json[dir] # there should be an entry in the metadata for each of the api versions to generate - package_name = dir - md.each do |api_version_pkg, api_version_value| - ar_arguments = '' - output_folder = '' - api_version_value.each do |argument_name, argument_value| - if argument_name.casecmp("output-folder") == 0 - output_folder = argument_value - else - if argument_name.casecmp("package-name") == 0 - package_name = argument_value - else - if argument_name.casecmp("markdown") == 0 - ar_arguments = ar_arguments + " #{argument_value}" - else - if argument_name.casecmp("input-file") == 0 - input_files = argument_value.map {|file| "--input-file=#{file}"} - ar_arguments = ar_arguments + input_files.join(" ") - else - ar_arguments = ar_arguments + " --#{argument_name}=#{argument_value}" - end - end - end - end - end - command = "#{ar_base_command} --package-name=#{package_name} #{ar_arguments} --output-folder=#{File.join(Dir.pwd, 'lib', output_folder)} --ruby --azure-arm" - execute_and_stream(command) + if REGEN_EXCLUDES.include?(dir.to_s) + update_gem_version('lib/azure_sdk/version.rb', gem_versions['rollup'][dir]) + next + end + + puts "\nGenerating #{dir}\n" + ar_base_command = "#{ENV.fetch('AUTOREST_LOC', 'autorest')}" + ar_base_command = "#{ar_base_command} --use=#{ENV.fetch('AUTOREST_RUBY_LOC')}" unless ENV.fetch('AUTOREST_RUBY_LOC', nil).nil? + puts "ar_base_command #{ar_base_command}" + md = json[dir] # there should be an entry in the metadata for each of the api versions to generate + package_name = dir + md.each do |api_version_pkg, api_version_value| + ar_arguments = '' + output_folder = '' + api_version_value.each do |argument_name, argument_value| + if argument_name.casecmp("output-folder") == 0 + output_folder = argument_value + else + if argument_name.casecmp("package-name") == 0 + package_name = argument_value + else + if argument_name.casecmp("markdown") == 0 + ar_arguments = ar_arguments + " #{argument_value}" + else + if argument_name.casecmp("input-file") == 0 + input_files = argument_value.map {|file| "--input-file=#{file}"} + ar_arguments = ar_arguments + input_files.join(" ") + else + ar_arguments = ar_arguments + " --#{argument_name}=#{argument_value}" + end + end + end + end end + command = "#{ar_base_command} --package-name=#{package_name} #{ar_arguments} --package-version=#{gem_versions['management'][dir]} --output-folder=#{File.join(Dir.pwd, 'lib', output_folder)} --ruby --azure-arm" + execute_and_stream(command) end + update_gem_version('lib/version.rb', gem_versions['management'][dir]) end end @@ -222,6 +236,10 @@ Rake::Task['arm:regen_individual_profiles'].enhance do Rake::Task['arm:regen_individual_require_files'].invoke end +Rake::Task['arm:regen'].enhance do + Rake::Task['arm:regen_individual_require_files'].invoke +end + task :default => :spec def get_base_profile_generation_cmd @@ -289,3 +307,9 @@ def each_gem yield gem_dir end end + +def update_gem_version(version_file, new_version) + existing_contents = File.read(version_file) + content_to_replace = existing_contents.gsub(/VERSION = '.*'/, "VERSION = '#{new_version}'") + File.open(version_file, 'w') { |file| file.puts content_to_replace } +end diff --git a/azure_sdk/azure_sdk.gemspec b/azure_sdk/azure_sdk.gemspec index f5837defd9..ac2b9e47cc 100644 --- a/azure_sdk/azure_sdk.gemspec +++ b/azure_sdk/azure_sdk.gemspec @@ -5,8 +5,10 @@ lib = File.expand_path('../lib', __FILE__) $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib) -version = File.read(File.expand_path('../../ARM_VERSION', __FILE__)).strip require 'azure_sdk/version' +require 'json' + +gem_versions = JSON.parse(File.read(File.expand_path('../../GEM_VERSIONS', __FILE__)).strip) Gem::Specification.new do |spec| spec.name = 'azure_sdk' @@ -30,62 +32,62 @@ Gem::Specification.new do |spec| spec.add_development_dependency 'rspec', '~> 3' spec.add_development_dependency 'dotenv', '~> 2' - spec.add_runtime_dependency 'azure_mgmt_analysis_services', "~>#{version}" - spec.add_runtime_dependency 'azure_mgmt_authorization', "~>#{version}" - spec.add_runtime_dependency 'azure_mgmt_automation', "~>#{version}" - spec.add_runtime_dependency 'azure_mgmt_batch', "~>#{version}" - spec.add_runtime_dependency 'azure_mgmt_billing', "~>#{version}" - spec.add_runtime_dependency 'azure_mgmt_cdn', "~>#{version}" - spec.add_runtime_dependency 'azure_mgmt_cognitive_services', "~>#{version}" - spec.add_runtime_dependency 'azure_mgmt_commerce', "~>#{version}" - spec.add_runtime_dependency 'azure_mgmt_compute', "~>#{version}" - spec.add_runtime_dependency 'azure_mgmt_consumption', "~>#{version}" - spec.add_runtime_dependency 'azure_mgmt_container_instance', "~>#{version}" - spec.add_runtime_dependency 'azure_mgmt_container_registry', "~>#{version}" - spec.add_runtime_dependency 'azure_mgmt_container_service', "~>#{version}" - spec.add_runtime_dependency 'azure_mgmt_customer_insights', "~>#{version}" - spec.add_runtime_dependency 'azure_mgmt_datalake_analytics', "~>#{version}" - spec.add_runtime_dependency 'azure_mgmt_datalake_store', "~>#{version}" - spec.add_runtime_dependency 'azure_mgmt_devtestlabs', "~>#{version}" - spec.add_runtime_dependency 'azure_mgmt_dns', "~>#{version}" - spec.add_runtime_dependency 'azure_mgmt_event_grid', "~>#{version}" - spec.add_runtime_dependency 'azure_mgmt_event_hub', "~>#{version}" - spec.add_runtime_dependency 'azure_mgmt_features', "~>#{version}" - spec.add_runtime_dependency 'azure_mgmt_graph', "~>#{version}" - spec.add_runtime_dependency 'azure_mgmt_iot_hub', "~>#{version}" - spec.add_runtime_dependency 'azure_mgmt_key_vault', "~>#{version}" - spec.add_runtime_dependency 'azure_mgmt_links', "~>#{version}" - spec.add_runtime_dependency 'azure_mgmt_locks', "~>#{version}" - spec.add_runtime_dependency 'azure_mgmt_logic', "~>#{version}" - spec.add_runtime_dependency 'azure_mgmt_machine_learning', "~>#{version}" - spec.add_runtime_dependency 'azure_mgmt_managed_applications', "~>#{version}" - spec.add_runtime_dependency 'azure_mgmt_marketplace_ordering', "~>#{version}" - spec.add_runtime_dependency 'azure_mgmt_media_services', "~>#{version}" - spec.add_runtime_dependency 'azure_mgmt_mobile_engagement', "~>#{version}" - spec.add_runtime_dependency 'azure_mgmt_monitor', "~>#{version}" - spec.add_runtime_dependency 'azure_mgmt_network', "~>#{version}" - spec.add_runtime_dependency 'azure_mgmt_notification_hubs', "~>#{version}" - spec.add_runtime_dependency 'azure_mgmt_operational_insights', "~>#{version}" - spec.add_runtime_dependency 'azure_mgmt_policy', "~>#{version}" - spec.add_runtime_dependency 'azure_mgmt_powerbi_embedded', "~>#{version}" - spec.add_runtime_dependency 'azure_mgmt_recovery_services', "~>#{version}" - spec.add_runtime_dependency 'azure_mgmt_recovery_services_backup', "~>#{version}" - spec.add_runtime_dependency 'azure_mgmt_recovery_services_site_recovery', "~>#{version}" - spec.add_runtime_dependency 'azure_mgmt_redis', "~>#{version}" - spec.add_runtime_dependency 'azure_mgmt_relay', "~>#{version}" - spec.add_runtime_dependency 'azure_mgmt_resources', "~>#{version}" - spec.add_runtime_dependency 'azure_mgmt_resources_management', "~>#{version}" - spec.add_runtime_dependency 'azure_mgmt_scheduler', "~>#{version}" - spec.add_runtime_dependency 'azure_mgmt_search', "~>#{version}" - spec.add_runtime_dependency 'azure_mgmt_server_management', "~>#{version}" - spec.add_runtime_dependency 'azure_mgmt_service_bus', "~>#{version}" - spec.add_runtime_dependency 'azure_mgmt_service_fabric', "~>#{version}" - spec.add_runtime_dependency 'azure_mgmt_sql', "~>#{version}" - spec.add_runtime_dependency 'azure_mgmt_stor_simple8000_series', "~>#{version}" - spec.add_runtime_dependency 'azure_mgmt_storage', "~>#{version}" - spec.add_runtime_dependency 'azure_mgmt_stream_analytics', "~>#{version}" - spec.add_runtime_dependency 'azure_mgmt_subscriptions', "~>#{version}" - spec.add_runtime_dependency 'azure_mgmt_traffic_manager', "~>#{version}" - spec.add_runtime_dependency 'azure_mgmt_web', "~>#{version}" - spec.add_runtime_dependency 'azure-storage', "~>0.14.0.preview" -end \ No newline at end of file + spec.add_runtime_dependency 'azure_mgmt_analysis_services', "~>#{gem_versions['management']['azure_mgmt_analysis_services']}" + spec.add_runtime_dependency 'azure_mgmt_authorization', "~>#{gem_versions['management']['azure_mgmt_authorization']}" + spec.add_runtime_dependency 'azure_mgmt_automation', "~>#{gem_versions['management']['azure_mgmt_automation']}" + spec.add_runtime_dependency 'azure_mgmt_batch', "~>#{gem_versions['management']['azure_mgmt_batch']}" + spec.add_runtime_dependency 'azure_mgmt_billing', "~>#{gem_versions['management']['azure_mgmt_billing']}" + spec.add_runtime_dependency 'azure_mgmt_cdn', "~>#{gem_versions['management']['azure_mgmt_cdn']}" + spec.add_runtime_dependency 'azure_mgmt_cognitive_services', "~>#{gem_versions['management']['azure_mgmt_cognitive_services']}" + spec.add_runtime_dependency 'azure_mgmt_commerce', "~>#{gem_versions['management']['azure_mgmt_commerce']}" + spec.add_runtime_dependency 'azure_mgmt_compute', "~>#{gem_versions['management']['azure_mgmt_compute']}" + spec.add_runtime_dependency 'azure_mgmt_consumption', "~>#{gem_versions['management']['azure_mgmt_consumption']}" + spec.add_runtime_dependency 'azure_mgmt_container_instance', "~>#{gem_versions['management']['azure_mgmt_container_instance']}" + spec.add_runtime_dependency 'azure_mgmt_container_registry', "~>#{gem_versions['management']['azure_mgmt_container_registry']}" + spec.add_runtime_dependency 'azure_mgmt_container_service', "~>#{gem_versions['management']['azure_mgmt_container_service']}" + spec.add_runtime_dependency 'azure_mgmt_customer_insights', "~>#{gem_versions['management']['azure_mgmt_customer_insights']}" + spec.add_runtime_dependency 'azure_mgmt_datalake_analytics', "~>#{gem_versions['management']['azure_mgmt_datalake_analytics']}" + spec.add_runtime_dependency 'azure_mgmt_datalake_store', "~>#{gem_versions['management']['azure_mgmt_datalake_store']}" + spec.add_runtime_dependency 'azure_mgmt_devtestlabs', "~>#{gem_versions['management']['azure_mgmt_devtestlabs']}" + spec.add_runtime_dependency 'azure_mgmt_dns', "~>#{gem_versions['management']['azure_mgmt_dns']}" + spec.add_runtime_dependency 'azure_mgmt_event_grid', "~>#{gem_versions['management']['azure_mgmt_event_grid']}" + spec.add_runtime_dependency 'azure_mgmt_event_hub', "~>#{gem_versions['management']['azure_mgmt_event_hub']}" + spec.add_runtime_dependency 'azure_mgmt_features', "~>#{gem_versions['management']['azure_mgmt_features']}" + spec.add_runtime_dependency 'azure_mgmt_graph', "~>#{gem_versions['management']['azure_mgmt_graph']}" + spec.add_runtime_dependency 'azure_mgmt_iot_hub', "~>#{gem_versions['management']['azure_mgmt_iot_hub']}" + spec.add_runtime_dependency 'azure_mgmt_key_vault', "~>#{gem_versions['management']['azure_mgmt_key_vault']}" + spec.add_runtime_dependency 'azure_mgmt_links', "~>#{gem_versions['management']['azure_mgmt_links']}" + spec.add_runtime_dependency 'azure_mgmt_locks', "~>#{gem_versions['management']['azure_mgmt_locks']}" + spec.add_runtime_dependency 'azure_mgmt_logic', "~>#{gem_versions['management']['azure_mgmt_logic']}" + spec.add_runtime_dependency 'azure_mgmt_machine_learning', "~>#{gem_versions['management']['azure_mgmt_machine_learning']}" + spec.add_runtime_dependency 'azure_mgmt_managed_applications', "~>#{gem_versions['management']['azure_mgmt_managed_applications']}" + spec.add_runtime_dependency 'azure_mgmt_marketplace_ordering', "~>#{gem_versions['management']['azure_mgmt_marketplace_ordering']}" + spec.add_runtime_dependency 'azure_mgmt_media_services', "~>#{gem_versions['management']['azure_mgmt_media_services']}" + spec.add_runtime_dependency 'azure_mgmt_mobile_engagement', "~>#{gem_versions['management']['azure_mgmt_mobile_engagement']}" + spec.add_runtime_dependency 'azure_mgmt_monitor', "~>#{gem_versions['management']['azure_mgmt_monitor']}" + spec.add_runtime_dependency 'azure_mgmt_network', "~>#{gem_versions['management']['azure_mgmt_network']}" + spec.add_runtime_dependency 'azure_mgmt_notification_hubs', "~>#{gem_versions['management']['azure_mgmt_notification_hubs']}" + spec.add_runtime_dependency 'azure_mgmt_operational_insights', "~>#{gem_versions['management']['azure_mgmt_operational_insights']}" + spec.add_runtime_dependency 'azure_mgmt_policy', "~>#{gem_versions['management']['azure_mgmt_policy']}" + spec.add_runtime_dependency 'azure_mgmt_powerbi_embedded', "~>#{gem_versions['management']['azure_mgmt_powerbi_embedded']}" + spec.add_runtime_dependency 'azure_mgmt_recovery_services', "~>#{gem_versions['management']['azure_mgmt_recovery_services']}" + spec.add_runtime_dependency 'azure_mgmt_recovery_services_backup', "~>#{gem_versions['management']['azure_mgmt_recovery_services_backup']}" + spec.add_runtime_dependency 'azure_mgmt_recovery_services_site_recovery', "~>#{gem_versions['management']['azure_mgmt_recovery_services_site_recovery']}" + spec.add_runtime_dependency 'azure_mgmt_redis', "~>#{gem_versions['management']['azure_mgmt_redis']}" + spec.add_runtime_dependency 'azure_mgmt_relay', "~>#{gem_versions['management']['azure_mgmt_relay']}" + spec.add_runtime_dependency 'azure_mgmt_resources', "~>#{gem_versions['management']['azure_mgmt_resources']}" + spec.add_runtime_dependency 'azure_mgmt_resources_management', "~>#{gem_versions['management']['azure_mgmt_resources_management']}" + spec.add_runtime_dependency 'azure_mgmt_scheduler', "~>#{gem_versions['management']['azure_mgmt_scheduler']}" + spec.add_runtime_dependency 'azure_mgmt_search', "~>#{gem_versions['management']['azure_mgmt_search']}" + spec.add_runtime_dependency 'azure_mgmt_server_management', "~>#{gem_versions['management']['azure_mgmt_server_management']}" + spec.add_runtime_dependency 'azure_mgmt_service_bus', "~>#{gem_versions['management']['azure_mgmt_service_bus']}" + spec.add_runtime_dependency 'azure_mgmt_service_fabric', "~>#{gem_versions['management']['azure_mgmt_service_fabric']}" + spec.add_runtime_dependency 'azure_mgmt_sql', "~>#{gem_versions['management']['azure_mgmt_sql']}" + spec.add_runtime_dependency 'azure_mgmt_stor_simple8000_series', "~>#{gem_versions['management']['azure_mgmt_stor_simple8000_series']}" + spec.add_runtime_dependency 'azure_mgmt_storage', "~>#{gem_versions['management']['azure_mgmt_storage']}" + spec.add_runtime_dependency 'azure_mgmt_stream_analytics', "~>#{gem_versions['management']['azure_mgmt_stream_analytics']}" + spec.add_runtime_dependency 'azure_mgmt_subscriptions', "~>#{gem_versions['management']['azure_mgmt_subscriptions']}" + spec.add_runtime_dependency 'azure_mgmt_traffic_manager', "~>#{gem_versions['management']['azure_mgmt_traffic_manager']}" + spec.add_runtime_dependency 'azure_mgmt_web', "~>#{gem_versions['management']['azure_mgmt_web']}" + spec.add_runtime_dependency 'azure-storage', '~>0.14.0.preview' +end diff --git a/config.json b/config.json index e4a962d29d..fb3d772cae 100644 --- a/config.json +++ b/config.json @@ -3,13 +3,11 @@ "azure_mgmt_analysis_services_2017_07_14": { "markdown": "https://raw.githubusercontent.com/Azure/azure-rest-api-specs/7aa3a5247895ba34d6cfec73e036bb66dc907d20/specification/analysisservices/resource-manager/readme.md", "namespace": "Azure::AnalysisServices::Mgmt::V2017_07_14", - "package-version": "0.15.0", "tag": "package-2017-07" }, "azure_mgmt_analysis_services_2016_05_16": { "markdown": "https://raw.githubusercontent.com/Azure/azure-rest-api-specs/7aa3a5247895ba34d6cfec73e036bb66dc907d20/specification/analysisservices/resource-manager/readme.md", "namespace": "Azure::AnalysisServices::Mgmt::V2016_05_16", - "package-version": "0.15.0", "tag": "package-2016-05" } }, @@ -17,7 +15,6 @@ "azure_mgmt_autorization_2015_07_01": { "markdown": "https://raw.githubusercontent.com/Azure/azure-rest-api-specs/7aa3a5247895ba34d6cfec73e036bb66dc907d20/specification/authorization/resource-manager/readme.md", "namespace": "Azure::Authorization::Mgmt::V2015_07_01", - "package-version": "0.15.0", "tag": "package-2015-07" } }, @@ -25,7 +22,6 @@ "azure_mgmt_automation_2015_10_31": { "markdown": "https://raw.githubusercontent.com/Azure/azure-rest-api-specs/7aa3a5247895ba34d6cfec73e036bb66dc907d20/specification/automation/resource-manager/readme.md", "namespace": "Azure::Automation::Mgmt::V2015_10_31", - "package-version": "0.15.0", "tag": "package-2015-10" } }, @@ -33,13 +29,11 @@ "azure_mgmt_batch_2017_05_01": { "markdown": "https://raw.githubusercontent.com/Azure/azure-rest-api-specs/7aa3a5247895ba34d6cfec73e036bb66dc907d20/specification/batch/resource-manager/readme.md", "namespace": "Azure::Batch::Mgmt::V2017_05_01", - "package-version": "0.15.0", "tag": "package-2017-05" }, "azure_mgmt_batch_2015_12_01": { "markdown": "https://raw.githubusercontent.com/Azure/azure-rest-api-specs/7aa3a5247895ba34d6cfec73e036bb66dc907d20/specification/batch/resource-manager/readme.md", "namespace": "Azure::Batch::Mgmt::V2015_12_01", - "package-version": "0.15.0", "tag": "package-2015-12" } }, @@ -47,7 +41,6 @@ "azure_mgmt_billing_2017_04_24_preview": { "markdown": "https://raw.githubusercontent.com/Azure/azure-rest-api-specs/7aa3a5247895ba34d6cfec73e036bb66dc907d20/specification/billing/resource-manager/readme.md", "namespace": "Azure::Billing::Mgmt::V2017_04_24_preview", - "package-version": "0.15.0", "tag": "package-2017-04-preview" } }, @@ -55,19 +48,16 @@ "azure_mgmt_cdn_2017_04_02": { "markdown": "https://raw.githubusercontent.com/Azure/azure-rest-api-specs/7aa3a5247895ba34d6cfec73e036bb66dc907d20/specification/cdn/resource-manager/readme.md", "namespace": "Azure::CDN::Mgmt::V2017_04_02", - "package-version": "0.15.0", "tag": "package-2017-04" }, "azure_mgmt_cdn_2016_10_02": { "markdown": "https://raw.githubusercontent.com/Azure/azure-rest-api-specs/7aa3a5247895ba34d6cfec73e036bb66dc907d20/specification/cdn/resource-manager/readme.md", "namespace": "Azure::CDN::Mgmt::V2016_10_02", - "package-version": "0.15.0", "tag": "package-2016-10" }, "azure_mgmt_cdn_2015_06_01": { "markdown": "https://raw.githubusercontent.com/Azure/azure-rest-api-specs/7aa3a5247895ba34d6cfec73e036bb66dc907d20/specification/cdn/resource-manager/readme.md", "namespace": "Azure::CDN::Mgmt::V2015_06_01", - "package-version": "0.15.0", "tag": "package-2015-06" } }, @@ -75,7 +65,6 @@ "azure_mgmt_cognitive_services_2017_04_18": { "markdown": "https://raw.githubusercontent.com/Azure/azure-rest-api-specs/7aa3a5247895ba34d6cfec73e036bb66dc907d20/specification/cognitiveservices/resource-manager/readme.md", "namespace": "Azure::CognitiveServices::Mgmt::V2017_04_18", - "package-version": "0.15.0", "tag": "package-2017-04" } }, @@ -83,7 +72,6 @@ "azure_mgmt_commerce_2015_06_01_preview": { "markdown": "https://raw.githubusercontent.com/Azure/azure-rest-api-specs/7aa3a5247895ba34d6cfec73e036bb66dc907d20/specification/commerce/resource-manager/readme.md", "namespace": "Azure::Commerce::Mgmt::V2015_06_01_preview", - "package-version": "0.15.0", "tag": "package-2015-06-preview" } }, @@ -95,25 +83,21 @@ "https://raw.githubusercontent.com/Azure/azure-rest-api-specs/7aa3a5247895ba34d6cfec73e036bb66dc907d20/specification/compute/resource-manager/Microsoft.Compute/2017-03-30/runCommands.json" ], "namespace": "Azure::Compute::Mgmt::V2017_03_30", - "package-version": "0.15.0", "title": "ComputeManagementClient" }, "azure_mgmt_compute_2016_04_30_preview": { "markdown": "https://raw.githubusercontent.com/Azure/azure-rest-api-specs/7aa3a5247895ba34d6cfec73e036bb66dc907d20/specification/compute/resource-manager/readme.md", "namespace": "Azure::Compute::Mgmt::V2016_04_30_preview", - "package-version": "0.15.0", "tag": "package-compute-2016-04-preview" }, "azure_mgmt_compute_2016_03_30": { "markdown": "https://raw.githubusercontent.com/Azure/azure-rest-api-specs/7aa3a5247895ba34d6cfec73e036bb66dc907d20/specification/compute/resource-manager/readme.md", "namespace": "Azure::Compute::Mgmt::V2016_03_30", - "package-version": "0.15.0", "tag": "package-compute-2016-03" }, "azure_mgmt_compute_2015_06_15": { "markdown": "https://raw.githubusercontent.com/Azure/azure-rest-api-specs/7aa3a5247895ba34d6cfec73e036bb66dc907d20/specification/compute/resource-manager/readme.md", "namespace": "Azure::Compute::Mgmt::V2015_06_15", - "package-version": "0.15.0", "tag": "package-compute-2015-06" } }, @@ -121,7 +105,6 @@ "azure_mgmt_consumption_2017_04_24_preview": { "markdown": "https://raw.githubusercontent.com/Azure/azure-rest-api-specs/7aa3a5247895ba34d6cfec73e036bb66dc907d20/specification/consumption/resource-manager/readme.md", "namespace": "Azure::Consumption::Mgmt::V2017_04_24_preview", - "package-version": "0.15.0", "tag": "package-2017-04-preview" } }, @@ -129,7 +112,6 @@ "azure_mgmt_container_instance_2017_08_01_preview": { "markdown": "https://raw.githubusercontent.com/Azure/azure-rest-api-specs/7aa3a5247895ba34d6cfec73e036bb66dc907d20/specification/containerinstance/resource-manager/readme.md", "namespace": "Azure::ContainerInstance::Mgmt::V2017_08_01_preview", - "package-version": "0.15.0", "tag": "package-2017-08-preview" } }, @@ -137,25 +119,21 @@ "azure_mgmt_container_registry_2017_10_01": { "markdown": "https://raw.githubusercontent.com/Azure/azure-rest-api-specs/7aa3a5247895ba34d6cfec73e036bb66dc907d20/specification/containerregistry/resource-manager/readme.md", "namespace": "Azure::ContainerRegistry::Mgmt::V2017_10_01", - "package-version": "0.15.0", "tag": "package-2017-10" }, "azure_mgmt_container_registry_2017_06_01_preview": { "markdown": "https://raw.githubusercontent.com/Azure/azure-rest-api-specs/7aa3a5247895ba34d6cfec73e036bb66dc907d20/specification/containerregistry/resource-manager/readme.md", "namespace": "Azure::ContainerRegistry::Mgmt::V2017_06_01_preview", - "package-version": "0.15.0", "tag": "package-2017-06-preview" }, "azure_mgmt_container_registry_2017_03_01": { "markdown": "https://raw.githubusercontent.com/Azure/azure-rest-api-specs/7aa3a5247895ba34d6cfec73e036bb66dc907d20/specification/containerregistry/resource-manager/readme.md", "namespace": "Azure::ContainerRegistry::Mgmt::V2017_03_01", - "package-version": "0.15.0", "tag": "package-2017-03" }, "azure_mgmt_container_registry_2016_06_27_preview": { "markdown": "https://raw.githubusercontent.com/Azure/azure-rest-api-specs/7aa3a5247895ba34d6cfec73e036bb66dc907d20/specification/containerregistry/resource-manager/readme.md", "namespace": "Azure::ContainerRegistry::Mgmt::V2016_06_27_preview", - "package-version": "0.15.0", "tag": "package-2016-06-preview" } }, @@ -163,7 +141,6 @@ "azure_mgmt_container_service_2017_01_31": { "markdown": "https://raw.githubusercontent.com/Azure/azure-rest-api-specs/7aa3a5247895ba34d6cfec73e036bb66dc907d20/specification/compute/resource-manager/readme.md", "namespace": "Azure::ContainerService::Mgmt::V2017_01_31", - "package-version": "0.15.0", "tag": "package-container-service-2017-01" }, "azure_mgmt_container_service_2016_09_30": { @@ -185,7 +162,6 @@ "azure_mgmt_customer_insights_2017_04_26": { "markdown": "https://raw.githubusercontent.com/Azure/azure-rest-api-specs/7aa3a5247895ba34d6cfec73e036bb66dc907d20/specification/customer-insights/resource-manager/readme.md", "namespace": "Azure::CustomerInsights::Mgmt::V2017_04_26", - "package-version": "0.15.0", "tag": "package-2017-04" } }, @@ -193,13 +169,11 @@ "azure_mgmt_datalake_analytics_2016_11_01": { "markdown": "https://raw.githubusercontent.com/Azure/azure-rest-api-specs/7aa3a5247895ba34d6cfec73e036bb66dc907d20/specification/datalake-analytics/resource-manager/readme.md", "namespace": "Azure::DataLakeAnalytics::Mgmt::V2016_11_01", - "package-version": "0.15.0", "tag": "package-2016-11" }, "azure_mgmt_datalake_analytics_2015_10_01_preview": { "markdown": "https://raw.githubusercontent.com/Azure/azure-rest-api-specs/7aa3a5247895ba34d6cfec73e036bb66dc907d20/specification/datalake-analytics/resource-manager/readme.md", "namespace": "Azure::DataLakeAnalytics::Mgmt::V2015_10_01_preview", - "package-version": "0.15.0", "tag": "package-2015-10-preview" } }, @@ -207,13 +181,11 @@ "azure_mgmt_datalake_store_2016_11_01": { "markdown": "https://raw.githubusercontent.com/Azure/azure-rest-api-specs/7aa3a5247895ba34d6cfec73e036bb66dc907d20/specification/datalake-store/resource-manager/readme.md", "namespace": "Azure::DataLakeStore::Mgmt::V2016_11_01", - "package-version": "0.15.0", "tag": "package-2016-11" }, "azure_mgmt_datalake_store_2015_10_01_preview": { "markdown": "https://raw.githubusercontent.com/Azure/azure-rest-api-specs/7aa3a5247895ba34d6cfec73e036bb66dc907d20/specification/datalake-store/resource-manager/readme.md", "namespace": "Azure::DataLakeStore::Mgmt::V2015_10_01_preview", - "package-version": "0.15.0", "tag": "package-2015-10-preview" } }, @@ -221,7 +193,6 @@ "azure_mgmt_devtestlabs_2016_05_15": { "markdown": "https://raw.githubusercontent.com/Azure/azure-rest-api-specs/7aa3a5247895ba34d6cfec73e036bb66dc907d20/specification/devtestlabs/resource-manager/readme.md", "namespace": "Azure::DevTestLabs::Mgmt::V2016_05_15", - "package-version": "0.15.0", "tag": "package-2016-05" } }, @@ -229,7 +200,6 @@ "azure_mgmt_dns_2016_04_01": { "markdown": "https://raw.githubusercontent.com/Azure/azure-rest-api-specs/7aa3a5247895ba34d6cfec73e036bb66dc907d20/specification/dns/resource-manager/readme.md", "namespace": "Azure::Dns::Mgmt::V2016_04_01", - "package-version": "0.15.0", "tag": "package-2016-04" } }, @@ -237,13 +207,11 @@ "azure_mgmt_event_grid_2017_09_15_preview": { "markdown": "https://raw.githubusercontent.com/Azure/azure-rest-api-specs/7aa3a5247895ba34d6cfec73e036bb66dc907d20/specification/eventgrid/resource-manager/readme.md", "namespace": "Azure::EventGrid::Mgmt::V2017_09_15_preview", - "package-version": "0.15.0", "tag": "package-2017-09-preview" }, "azure_mgmt_event_grid_2017_06_15_preview": { "markdown": "https://raw.githubusercontent.com/Azure/azure-rest-api-specs/7aa3a5247895ba34d6cfec73e036bb66dc907d20/specification/eventgrid/resource-manager/readme.md", "namespace": "Azure::EventGrid::Mgmt::V2017_06_15_preview", - "package-version": "0.15.0", "tag": "package-2017-06-preview" } }, @@ -251,13 +219,11 @@ "azure_mgmt_event_hub_2017_04_01": { "markdown": "https://raw.githubusercontent.com/Azure/azure-rest-api-specs/7aa3a5247895ba34d6cfec73e036bb66dc907d20/specification/eventhub/resource-manager/readme.md", "namespace": "Azure::EventHub::Mgmt::V2017_04_01", - "package-version": "0.15.0", "tag": "package-2017-04" }, "azure_mgmt_event_hub_2015_08_01": { "markdown": "https://raw.githubusercontent.com/Azure/azure-rest-api-specs/7aa3a5247895ba34d6cfec73e036bb66dc907d20/specification/eventhub/resource-manager/readme.md", "namespace": "Azure::EventHub::Mgmt::V2015_08_01", - "package-version": "0.15.0", "tag": "package-2015-08" } }, @@ -265,7 +231,6 @@ "azure_mgmt_features_2015_12_01": { "markdown": "https://raw.githubusercontent.com/Azure/azure-rest-api-specs/7aa3a5247895ba34d6cfec73e036bb66dc907d20/specification/resources/resource-manager/readme.md", "namespace": "Azure::Features::Mgmt::V2015_12_01", - "package-version": "0.15.0", "tag": "package-features-2015-12" } }, @@ -282,19 +247,16 @@ "azure_mgmt_iot_hub_2017_07_01": { "markdown": "https://raw.githubusercontent.com/Azure/azure-rest-api-specs/7aa3a5247895ba34d6cfec73e036bb66dc907d20/specification/iothub/resource-manager/readme.md", "namespace": "Azure::IotHub::Mgmt::V2017_07_01", - "package-version": "0.15.0", "tag": "package-2017-07" }, "azure_mgmt_iot_hub_2017_01_19": { "markdown": "https://raw.githubusercontent.com/Azure/azure-rest-api-specs/7aa3a5247895ba34d6cfec73e036bb66dc907d20/specification/iothub/resource-manager/readme.md", "namespace": "Azure::IotHub::Mgmt::V2017_01_19", - "package-version": "0.15.0", "tag": "package-2017-01" }, "azure_mgmt_iot_hub_2016_02_03": { "markdown": "https://raw.githubusercontent.com/Azure/azure-rest-api-specs/7aa3a5247895ba34d6cfec73e036bb66dc907d20/specification/iothub/resource-manager/readme.md", "namespace": "Azure::IotHub::Mgmt::V2016_02_03", - "package-version": "0.15.0", "tag": "package-2016-02" } }, @@ -302,13 +264,11 @@ "azure_mgmt_key_vault_2016_10_01": { "markdown": "https://raw.githubusercontent.com/Azure/azure-rest-api-specs/7aa3a5247895ba34d6cfec73e036bb66dc907d20/specification/keyvault/resource-manager/readme.md", "namespace": "Azure::KeyVault::Mgmt::V2016_10_01", - "package-version": "0.15.0", "tag": "package-2016-10" }, "azure_mgmt_key_vault_2015_06_01": { "markdown": "https://raw.githubusercontent.com/Azure/azure-rest-api-specs/7aa3a5247895ba34d6cfec73e036bb66dc907d20/specification/keyvault/resource-manager/readme.md", "namespace": "Azure::KeyVault::Mgmt::V2015_06_01", - "package-version": "0.15.0", "tag": "package-2015-06" } }, @@ -316,7 +276,6 @@ "azure_mgmt_links_2016_09_01": { "markdown": "https://raw.githubusercontent.com/Azure/azure-rest-api-specs/7aa3a5247895ba34d6cfec73e036bb66dc907d20/specification/resources/resource-manager/readme.md", "namespace": "Azure::Links::Mgmt::V2016_09_01", - "package-version": "0.15.0", "tag": "package-links-2016-09" } }, @@ -324,13 +283,11 @@ "azure_mgmt_locks_2016_09_01": { "markdown": "https://raw.githubusercontent.com/Azure/azure-rest-api-specs/7aa3a5247895ba34d6cfec73e036bb66dc907d20/specification/resources/resource-manager/readme.md", "namespace": "Azure::Locks::Mgmt::V2016_09_01", - "package-version": "0.15.0", "tag": "package-locks-2016-09" }, "azure_mgmt_locks_2015_01_01": { "markdown": "https://raw.githubusercontent.com/Azure/azure-rest-api-specs/7aa3a5247895ba34d6cfec73e036bb66dc907d20/specification/resources/resource-manager/readme.md", "namespace": "Azure::Locks::Mgmt::V2015_01_01", - "package-version": "0.15.0", "tag": "package-locks-2015-01" } }, @@ -338,13 +295,11 @@ "azure_mgmt_logic_2016_06_01": { "markdown": "https://raw.githubusercontent.com/Azure/azure-rest-api-specs/7aa3a5247895ba34d6cfec73e036bb66dc907d20/specification/logic/resource-manager/readme.md", "namespace": "Azure::Logic::Mgmt::V2016_06_01", - "package-version": "0.15.0", "tag": "package-2016-06" }, "azure_mgmt_logic_2015_02_01_preview": { "markdown": "https://raw.githubusercontent.com/Azure/azure-rest-api-specs/7aa3a5247895ba34d6cfec73e036bb66dc907d20/specification/logic/resource-manager/readme.md", "namespace": "Azure::Logic::Mgmt::V2015_02_01_preview", - "package-version": "0.15.0", "tag": "package-2015-02-preview" } }, @@ -352,7 +307,6 @@ "azure_mgmt_web_services_2017_01_01": { "markdown": "https://raw.githubusercontent.com/Azure/azure-rest-api-specs/7aa3a5247895ba34d6cfec73e036bb66dc907d20/specification/machinelearning/resource-manager/readme.md", "namespace": "Azure::MachineLearning::Mgmt::V2017_01_01", - "package-version": "0.15.0", "tag": "package-webservices-2017-01" }//, // fails code generation when putting these input files together @@ -368,7 +322,6 @@ "azure_mgmt_managed_applications_2016_09_01_preview": { "markdown": "https://raw.githubusercontent.com/Azure/azure-rest-api-specs/7aa3a5247895ba34d6cfec73e036bb66dc907d20/specification/resources/resource-manager/readme.md", "namespace": "Azure::ManagedApplications::Mgmt::V2016_09_01_preview", - "package-version": "0.15.0", "tag": "package-managedapplications-2016-09" } }, @@ -376,7 +329,6 @@ "azure_mgmt_marketplace_ordering_2015_06_01": { "markdown": "https://raw.githubusercontent.com/Azure/azure-rest-api-specs/7aa3a5247895ba34d6cfec73e036bb66dc907d20/specification/marketplaceordering/resource-manager/readme.md", "namespace": "Azure::MarketplaceOrdering::Mgmt::V2015_06_01", - "package-version": "0.15.0", "tag": "package-2015-06-01" } }, @@ -384,7 +336,6 @@ "azure_mgmt_media_services_2015_10_01": { "markdown": "https://raw.githubusercontent.com/Azure/azure-rest-api-specs/7aa3a5247895ba34d6cfec73e036bb66dc907d20/specification/mediaservices/resource-manager/readme.md", "namespace": "Azure::MediaServices::Mgmt::V2015_10_01", - "package-version": "0.15.0", "tag": "package-2015-10" } }, @@ -392,7 +343,6 @@ "azure_mgmt_mobile_engagement_2014_12_01": { "markdown": "https://raw.githubusercontent.com/Azure/azure-rest-api-specs/7aa3a5247895ba34d6cfec73e036bb66dc907d20/specification/mobileengagement/resource-manager/readme.md", "namespace": "Azure::MobileEngagement::Mgmt::V2014_12_01", - "package-version": "0.15.0", "tag": "package-2014-12" } }, @@ -403,7 +353,6 @@ "https://raw.githubusercontent.com/Azure/azure-rest-api-specs/7aa3a5247895ba34d6cfec73e036bb66dc907d20/specification/monitor/resource-manager/microsoft.insights/2017-05-01-preview/diagnosticsSettings_API.json" ], "namespace": "Azure::Monitor::Mgmt::V2017_05_01_preview", - "package-version": "0.15.0", "title": "MonitorClient" }, "azure_mgmt_monitor_2017_04_01": { @@ -412,7 +361,6 @@ "https://raw.githubusercontent.com/Azure/azure-rest-api-specs/7aa3a5247895ba34d6cfec73e036bb66dc907d20/specification/monitor/resource-manager/microsoft.insights/2017-04-01/activityLogAlerts_API.json" ], "namespace": "Azure::Monitor::Mgmt::V2017_04_01", - "package-version": "0.15.0", "title": "MonitorClient" }, "azure_mgmt_monitor_2016_09_01": { @@ -420,7 +368,6 @@ "https://raw.githubusercontent.com/Azure/azure-rest-api-specs/7aa3a5247895ba34d6cfec73e036bb66dc907d20/specification/monitor/resource-manager/microsoft.insights/2016-09-01/serviceDiagnosticsSettings_API.json" ], "namespace": "Azure::Monitor::Mgmt::V2016_09_01", - "package-version": "0.15.0", "title": "MonitorClient" }, "azure_mgmt_monitor_2016_03_01": { @@ -498,37 +445,33 @@ "azure_mgmt_network_2016_12_01":{ "markdown": "https://raw.githubusercontent.com/Azure/azure-rest-api-specs/7aa3a5247895ba34d6cfec73e036bb66dc907d20/specification/network/resource-manager/readme.md", "namespace": "Azure::Network::Mgmt::V2016_12_01", - "package-version": "0.15.0", + "tag": "package-2016-12" }, "azure_mgmt_network_2016_09_01":{ "markdown": "https://raw.githubusercontent.com/Azure/azure-rest-api-specs/7aa3a5247895ba34d6cfec73e036bb66dc907d20/specification/network/resource-manager/readme.md", "namespace": "Azure::Network::Mgmt::V2016_09_01", - "package-version": "0.15.0", + "tag": "package-2016-09" }, "azure_mgmt_network_2016_06_01":{ "markdown": "https://raw.githubusercontent.com/Azure/azure-rest-api-specs/7aa3a5247895ba34d6cfec73e036bb66dc907d20/specification/network/resource-manager/readme.md", "namespace": "Azure::Network::Mgmt::V2016_06_01", - "package-version": "0.15.0", "tag": "package-2016-06" }, "azure_mgmt_network_2016_03_30":{ "markdown": "https://raw.githubusercontent.com/Azure/azure-rest-api-specs/7aa3a5247895ba34d6cfec73e036bb66dc907d20/specification/network/resource-manager/readme.md", "namespace": "Azure::Network::Mgmt::V2016_03_30", - "package-version": "0.15.0", "tag": "package-2016-03" }, "azure_mgmt_network_2015_06_15":{ "markdown": "https://raw.githubusercontent.com/Azure/azure-rest-api-specs/7aa3a5247895ba34d6cfec73e036bb66dc907d20/specification/network/resource-manager/readme.md", "namespace": "Azure::Network::Mgmt::V2015_06_15", - "package-version": "0.15.0", "tag": "package-2015-06split" }, "azure_mgmt_network_2015_05_01_preview":{ "markdown": "https://raw.githubusercontent.com/Azure/azure-rest-api-specs/7aa3a5247895ba34d6cfec73e036bb66dc907d20/specification/network/resource-manager/readme.md", "namespace": "Azure::Network::Mgmt::V2015_05_01_preview", - "package-version": "0.15.0", "tag": "package-2015-05-preview" } }, @@ -536,7 +479,6 @@ "azure_mgmt_notification_hubs_2017_04_01": { "markdown": "https://raw.githubusercontent.com/Azure/azure-rest-api-specs/7aa3a5247895ba34d6cfec73e036bb66dc907d20/specification/notificationhubs/resource-manager/readme.md", "namespace": "Azure::NotificationHubs::Mgmt::V2017_04_01", - "package-version": "0.15.0", "tag": "package-2017-04" } }, @@ -549,7 +491,6 @@ "azure_mgmt_operational_insights_2015_03_20": { "markdown": "https://raw.githubusercontent.com/Azure/azure-rest-api-specs/7aa3a5247895ba34d6cfec73e036bb66dc907d20/specification/operationalinsights/resource-manager/readme.md", "namespace": "Azure::OperationalInsights::Mgmt::V2015_03_20", - "package-version": "0.15.0", "tag": "package-2015-03" } }, @@ -560,25 +501,21 @@ "https://raw.githubusercontent.com/Azure/azure-rest-api-specs/7aa3a5247895ba34d6cfec73e036bb66dc907d20/specification/resources/resource-manager/Microsoft.Authorization/2017-06-01-preview/policySetDefinitions.json" ], "namespace": "Azure::Policy::Mgmt::V2017_06_01_preview", - "package-version": "0.15.0", "title": "PolicyClient" }, "azure_mgmt_policy_2016_12_01": { "markdown": "https://raw.githubusercontent.com/Azure/azure-rest-api-specs/7aa3a5247895ba34d6cfec73e036bb66dc907d20/specification/resources/resource-manager/readme.md", "namespace": "Azure::Policy::Mgmt::V2016_12_01", - "package-version": "0.15.0", "tag": "package-policy-2016-12" }, "azure_mgmt_policy_2016_04_01": { "markdown": "https://raw.githubusercontent.com/Azure/azure-rest-api-specs/7aa3a5247895ba34d6cfec73e036bb66dc907d20/specification/resources/resource-manager/readme.md", "namespace": "Azure::Policy::Mgmt::V2016_04_01", - "package-version": "0.15.0", "tag": "package-policy-2016-04" }, "azure_mgmt_policy_2015_10_01_preview": { "markdown": "https://raw.githubusercontent.com/Azure/azure-rest-api-specs/7aa3a5247895ba34d6cfec73e036bb66dc907d20/specification/resources/resource-manager/readme.md", "namespace": "Azure::Policy::Mgmt::V2015_10_01_preview", - "package-version": "0.15.0", "tag": "package-policy-2015-10" } }, @@ -586,7 +523,6 @@ "azure_mgmt_powerbi_embedded_2016_01_29": { "markdown": "https://raw.githubusercontent.com/Azure/azure-rest-api-specs/7aa3a5247895ba34d6cfec73e036bb66dc907d20/specification/powerbiembedded/resource-manager/readme.md", "namespace": "Azure::PowerBiEmbedded::Mgmt::V2016_01_29", - "package-version": "0.15.0", "tag": "package-2016-01" } }, @@ -599,7 +535,6 @@ "azure_mgmt_recovery_services_2016_06_01": { "markdown": "https://github.com/Azure/azure-rest-api-specs/blob/7aa3a5247895ba34d6cfec73e036bb66dc907d20/specification/recoveryservices/resource-manager/readme.md", "namespace": "Azure::RecoveryServices::Mgmt::V2016_06_01", - "package-version": "0.15.0", "tag": "package-2016-06" } }, @@ -622,7 +557,6 @@ "azure_mgmt_recovery_services_backup_2016_06_01": { "markdown": "https://github.com/Azure/azure-rest-api-specs/blob/7aa3a5247895ba34d6cfec73e036bb66dc907d20/specification/recoveryservicesbackup/resource-manager/readme.md", "namespace": "Azure::RecoveryServicesBackup::Mgmt::V2016_06_01", - "package-version": "0.15.0", "tag": "package-2016-06" } }, @@ -630,7 +564,6 @@ "azure_mgmt_recovery_services_site_recovery_2016_08_10": { "markdown": "https://github.com/Azure/azure-rest-api-specs/blob/7aa3a5247895ba34d6cfec73e036bb66dc907d20/specification/recoveryservicessiterecovery/resource-manager/readme.md", "namespace": "Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10", - "package-version": "0.15.0", "tag": "package-2016-08" } }, @@ -638,19 +571,16 @@ "azure_mgmt_redis_2017_02_01": { "markdown": "https://github.com/Azure/azure-rest-api-specs/blob/7aa3a5247895ba34d6cfec73e036bb66dc907d20/specification/redis/resource-manager/readme.md", "namespace": "Azure::Redis::Mgmt::V2017_02_01", - "package-version": "0.15.0", "tag": "package-2017-02" }, "azure_mgmt_redis_2016_04_01": { "markdown": "https://github.com/Azure/azure-rest-api-specs/blob/7aa3a5247895ba34d6cfec73e036bb66dc907d20/specification/redis/resource-manager/readme.md", "namespace": "Azure::Redis::Mgmt::V2016_04_01", - "package-version": "0.15.0", "tag": "package-2016-04" }, "azure_mgmt_redis_2015_08_01": { "markdown": "https://github.com/Azure/azure-rest-api-specs/blob/7aa3a5247895ba34d6cfec73e036bb66dc907d20/specification/redis/resource-manager/readme.md", "namespace": "Azure::Redis::Mgmt::V2015_08_01", - "package-version": "0.15.0", "tag": "package-2015-08" } }, @@ -658,13 +588,11 @@ "azure_mgmt_relay_2017_04_01": { "markdown": "https://github.com/Azure/azure-rest-api-specs/blob/7aa3a5247895ba34d6cfec73e036bb66dc907d20/specification/relay/resource-manager/readme.md", "namespace": "Azure::Relay::Mgmt::V2017_04_01", - "package-version": "0.15.0", "tag": "package-2017-04" }, "azure_mgmt_relay_2016_07_01": { "markdown": "https://github.com/Azure/azure-rest-api-specs/blob/7aa3a5247895ba34d6cfec73e036bb66dc907d20/specification/relay/resource-manager/readme.md", "namespace": "Azure::Relay::Mgmt::V2016_07_01", - "package-version": "0.15.0", "tag": "package-2016-07" } }, @@ -702,7 +630,6 @@ "azure_mgmt_resources_management_2017_08_31_preview": { "markdown": "https://raw.githubusercontent.com/Azure/azure-rest-api-specs/7aa3a5247895ba34d6cfec73e036bb66dc907d20/specification/resources/resource-manager/readme.md", "namespace": "Azure::ResourcesManagement::Mgmt::V2017_08_31_preview", - "package-version": "0.15.0", "tag": "package-management-2017-08" } }, @@ -710,7 +637,6 @@ "azure_mgmt_scheduler_2016_03_01": { "markdown": "https://raw.githubusercontent.com/Azure/azure-rest-api-specs/7aa3a5247895ba34d6cfec73e036bb66dc907d20/specification/scheduler/resource-manager/readme.md", "namespace": "Azure::Scheduler::Mgmt::V2016_03_01", - "package-version": "0.15.0", "tag": "package-2016-03" } }, @@ -718,7 +644,6 @@ "azure_mgmt_search_2015_08_19": { "markdown": "https://raw.githubusercontent.com/Azure/azure-rest-api-specs/7aa3a5247895ba34d6cfec73e036bb66dc907d20/specification/search/resource-manager/readme.md", "namespace": "Azure::Search::Mgmt::V2015_08_19", - "package-version": "0.15.0", "tag": "package-2015-08" } }, @@ -726,7 +651,6 @@ "azure_mgmt_server_management_2016_07_01_preview": { "markdown": "https://raw.githubusercontent.com/Azure/azure-rest-api-specs/7aa3a5247895ba34d6cfec73e036bb66dc907d20/specification/servermanagement/resource-manager/readme.md", "namespace": "Azure::ServerManagement::Mgmt::V2016_07_01_preview", - "package-version": "0.15.0", "tag": "package-2016-07-preview" } }, @@ -734,13 +658,11 @@ "azure_mgmt_service_bus_2017_04_01": { "markdown": "https://raw.githubusercontent.com/Azure/azure-rest-api-specs/7aa3a5247895ba34d6cfec73e036bb66dc907d20/specification/servicebus/resource-manager/readme.md", "namespace": "Azure::ServiceBus::Mgmt::V2017_04_01", - "package-version": "0.15.0", "tag": "package-2017-04" }, "azure_mgmt_service_bus_2015_08_01": { "markdown": "https://raw.githubusercontent.com/Azure/azure-rest-api-specs/7aa3a5247895ba34d6cfec73e036bb66dc907d20/specification/servicebus/resource-manager/readme.md", "namespace": "Azure::ServiceBus::Mgmt::V2015_08_01", - "package-version": "0.15.0", "tag": "package-2015-08" } }, @@ -748,7 +670,6 @@ "azure_mgmt_service_fabric_2016_09_01": { "markdown": "https://raw.githubusercontent.com/Azure/azure-rest-api-specs/7aa3a5247895ba34d6cfec73e036bb66dc907d20/specification/servicefabric/resource-manager/readme.md", "namespace": "Azure::ServiceFabric::Mgmt::V2016_09_01", - "package-version": "0.15.0", "tag": "package-2016-09" } }, @@ -756,13 +677,11 @@ "azure_mgmt_sql_2014_04_01": { "markdown": "https://raw.githubusercontent.com/Azure/azure-rest-api-specs/7aa3a5247895ba34d6cfec73e036bb66dc907d20/specification/sql/resource-manager/readme.md", "namespace": "Azure::SQL::Mgmt::V2014_04_01", - "package-version": "0.15.0", "tag": "schema-2014-04" }, "azure_mgmt_sql_2015_05_01_preview": { "markdown": "https://raw.githubusercontent.com/Azure/azure-rest-api-specs/7aa3a5247895ba34d6cfec73e036bb66dc907d20/specification/sql/resource-manager/readme.md", "namespace": "Azure::SQL::Mgmt::V2015_05_01_preview", - "package-version": "0.15.0", "tag": "schema-2015-05-preview" }, "azure_mgmt_sql_2017_03_01_preview": { @@ -777,7 +696,6 @@ "azure_mgmt_stor_simple8000_series_2017_06_01": { "markdown": "https://raw.githubusercontent.com/Azure/azure-rest-api-specs/7aa3a5247895ba34d6cfec73e036bb66dc907d20/specification/storsimple8000series/resource-manager/readme.md", "namespace": "Azure::StorSimple8000Series::Mgmt::V2017_06_01", - "package-version": "0.15.0", "tag": "package-2017-06" } }, @@ -785,31 +703,26 @@ "azure_mgmt_storage_2017_06_01": { "markdown": "https://raw.githubusercontent.com/Azure/azure-rest-api-specs/7aa3a5247895ba34d6cfec73e036bb66dc907d20/specification/storage/resource-manager/readme.md", "namespace": "Azure::Storage::Mgmt::V2017_06_01", - "package-version": "0.15.0", "tag": "package-2017-06" }, "azure_mgmt_storage_2016_12_01": { "markdown": "https://raw.githubusercontent.com/Azure/azure-rest-api-specs/7aa3a5247895ba34d6cfec73e036bb66dc907d20/specification/storage/resource-manager/readme.md", "namespace": "Azure::Storage::Mgmt::V2016_12_01", - "package-version": "0.15.0", "tag": "package-2016-12" }, "azure_mgmt_storage_2016_01_01": { "markdown": "https://raw.githubusercontent.com/Azure/azure-rest-api-specs/7aa3a5247895ba34d6cfec73e036bb66dc907d20/specification/storage/resource-manager/readme.md", "namespace": "Azure::Storage::Mgmt::V2016_01_01", - "package-version": "0.15.0", "tag": "package-2016-01" }, "azure_mgmt_storage_2015_06_15": { "markdown": "https://raw.githubusercontent.com/Azure/azure-rest-api-specs/7aa3a5247895ba34d6cfec73e036bb66dc907d20/specification/storage/resource-manager/readme.md", "namespace": "Azure::Storage::Mgmt::V2015_06_15", - "package-version": "0.15.0", "tag": "package-2015-06" }, "azure_mgmt_storage_2015_05_01_preview": { "markdown": "https://raw.githubusercontent.com/Azure/azure-rest-api-specs/7aa3a5247895ba34d6cfec73e036bb66dc907d20/specification/storage/resource-manager/readme.md", "namespace": "Azure::Storage::Mgmt::V2015_05_01_preview", - "package-version": "0.15.0", "tag": "package-2015-05-preview" } }, @@ -817,7 +730,6 @@ "azure_mgmt_stream_analytics_2016_03_01": { "markdown": "https://raw.githubusercontent.com/Azure/azure-rest-api-specs/7aa3a5247895ba34d6cfec73e036bb66dc907d20/specification/streamanalytics/resource-manager/readme.md", "namespace": "Azure::StreamAnalytics::Mgmt::V2016_03_01", - "package-version": "0.15.0", "tag": "package-2016-03" } }, @@ -825,13 +737,11 @@ "azure_mgmt_subscriptions_2016_06_01": { "markdown": "https://raw.githubusercontent.com/Azure/azure-rest-api-specs/7aa3a5247895ba34d6cfec73e036bb66dc907d20/specification/resources/resource-manager/readme.md", "namespace": "Azure::Subscriptions::Mgmt::V2016_06_01", - "package-version": "0.15.0", "tag": "package-subscriptions-2016-06" }, "azure_mgmt_subscriptions_2015_11_01": { "markdown": "https://raw.githubusercontent.com/Azure/azure-rest-api-specs/7aa3a5247895ba34d6cfec73e036bb66dc907d20/specification/resources/resource-manager/readme.md", "namespace": "Azure::Subscriptions::Mgmt::V2015_11_01", - "package-version": "0.15.0", "tag": "package-subscriptions-2015-11" } }, @@ -841,25 +751,25 @@ "https://raw.githubusercontent.com/Azure/azure-rest-api-specs/7aa3a5247895ba34d6cfec73e036bb66dc907d20/specification/trafficmanager/resource-manager/Microsoft.Network/2017-09-01-preview/trafficmanageranalytics.json" ], "namespace": "Azure::TrafficManager::Mgmt::V2017_09_01_preview", - "package-version": "0.15.0", + "title": "TrafficManagerManagementClient" }, "azure_mgmt_traffic_manager_2017_05_01": { "markdown": "https://raw.githubusercontent.com/Azure/azure-rest-api-specs/7aa3a5247895ba34d6cfec73e036bb66dc907d20/specification/trafficmanager/resource-manager/readme.md", "namespace": "Azure::TrafficManager::Mgmt::V2017_05_01", - "package-version": "0.15.0", + "tag": "package-2017-05" }, "azure_mgmt_traffic_manager_2017_03_01": { "markdown": "https://raw.githubusercontent.com/Azure/azure-rest-api-specs/7aa3a5247895ba34d6cfec73e036bb66dc907d20/specification/trafficmanager/resource-manager/readme.md", "namespace": "Azure::TrafficManager::Mgmt::V2017_03_01", - "package-version": "0.15.0", + "tag": "package-2017-03" }, "azure_mgmt_traffic_manager_2015_11_01": { "markdown": "https://raw.githubusercontent.com/Azure/azure-rest-api-specs/7aa3a5247895ba34d6cfec73e036bb66dc907d20/specification/trafficmanager/resource-manager/readme.md", "namespace": "Azure::TrafficManager::Mgmt::V2015_11_01", - "package-version": "0.15.0", + "tag": "package-2015-11" } }, @@ -869,7 +779,6 @@ "https://raw.githubusercontent.com/Azure/azure-rest-api-specs/7aa3a5247895ba34d6cfec73e036bb66dc907d20/specification/web/resource-manager/Microsoft.CertificateRegistration/2015-08-01/AppServiceCertificateOrders.json" ], "namespace": "Azure::Web::Mgmt::V2015_08_01", - "package-version": "0.15.0", "title": "WebSiteManagementClient" }, "azure_mgmt_web_2015_04_01": { @@ -878,7 +787,6 @@ "https://raw.githubusercontent.com/Azure/azure-rest-api-specs/7aa3a5247895ba34d6cfec73e036bb66dc907d20/specification/web/resource-manager/Microsoft.DomainRegistration/2015-04-01/TopLevelDomains.json" ], "namespace": "Azure::Web::Mgmt::V2015_04_01", - "package-version": "0.15.0", "title": "WebSiteManagementClient" }, "azure_mgmt_web_2016_09_01": { @@ -887,7 +795,6 @@ "https://raw.githubusercontent.com/Azure/azure-rest-api-specs/7aa3a5247895ba34d6cfec73e036bb66dc907d20/specification/web/resource-manager/Microsoft.Web/2016-09-01/AppServicePlans.json" ], "namespace": "Azure::Web::Mgmt::V2016_09_01", - "package-version": "0.15.0", "title": "WebSiteManagementClient" }, "azure_mgmt_web_2016_08_01": { @@ -895,7 +802,6 @@ "https://raw.githubusercontent.com/Azure/azure-rest-api-specs/7aa3a5247895ba34d6cfec73e036bb66dc907d20/specification/web/resource-manager/Microsoft.Web/2016-08-01/WebApps.json" ], "namespace": "Azure::Web::Mgmt::V2016_08_01", - "package-version": "0.15.0", "title": "WebSiteManagementClient" }, "azure_mgmt_web_2016_03_01": { @@ -907,7 +813,6 @@ "https://raw.githubusercontent.com/Azure/azure-rest-api-specs/7aa3a5247895ba34d6cfec73e036bb66dc907d20/specification/web/resource-manager/Microsoft.Web/2016-03-01/ResourceProvider.json" ], "namespace": "Azure::Web::Mgmt::V2016_03_01", - "package-version": "0.15.0", "title": "WebSiteManagementClient" } } From f913f26ffa0b4d5ec5c61687e326d215f97192f5 Mon Sep 17 00:00:00 2001 From: Sarangan Rajamanickam Date: Thu, 19 Oct 2017 15:13:22 -0700 Subject: [PATCH 3/6] Minor Fix --- config.json | 59 +++++++++++++++++------------------------------------ 1 file changed, 19 insertions(+), 40 deletions(-) diff --git a/config.json b/config.json index fb3d772cae..7ca201e727 100644 --- a/config.json +++ b/config.json @@ -147,15 +147,13 @@ "input-file": [ "https://raw.githubusercontent.com/Azure/azure-rest-api-specs/7aa3a5247895ba34d6cfec73e036bb66dc907d20/specification/compute/resource-manager/Microsoft.ContainerService/2016-09-30/containerService.json" ], - "namespace": "Azure::ContainerService::Mgmt::V2016_09_30", - "package-version": "0.15.0" + "namespace": "Azure::ContainerService::Mgmt::V2016_09_30" }, "azure_mgmt_container_service_2016_03_30": { "input-file": [ "https://raw.githubusercontent.com/Azure/azure-rest-api-specs/7aa3a5247895ba34d6cfec73e036bb66dc907d20/specification/compute/resource-manager/Microsoft.ContainerService/2016-03-30/containerService.json" ], - "namespace": "Azure::ContainerService::Mgmt::V2016_03_30", - "package-version": "0.15.0" + "namespace": "Azure::ContainerService::Mgmt::V2016_03_30" } }, "azure_mgmt_customer_insights": { @@ -239,8 +237,7 @@ "input-file": [ "https://raw.githubusercontent.com/Azure/azure-rest-api-specs/7aa3a5247895ba34d6cfec73e036bb66dc907d20/specification/graphrbac/data-plane/1.6/graphrbac.json" ], - "namespace": "Azure::Graph::Mgmt::V1_6", - "package-version": "0.15.0" + "namespace": "Azure::Graph::Mgmt::V1_6" } }, "azure_mgmt_iot_hub": { @@ -314,8 +311,7 @@ // "input-file": ["https://raw.githubusercontent.com/Azure/azure-rest-api-specs/7aa3a5247895ba34d6cfec73e036bb66dc907d20/specification/machinelearning/resource-manager/Microsoft.MachineLearning/2016-05-01-preview/commitmentPlans.json", // "https://raw.githubusercontent.com/Azure/azure-rest-api-specs/7aa3a5247895ba34d6cfec73e036bb66dc907d20/specification/machinelearning/resource-manager/Microsoft.MachineLearning/2016-05-01-preview/webservices.json" // ], -// "namespace": "Azure::MachineLearning::Mgmt::V2016_05_01_preview", -// "package-version": "0.15.0" +// "namespace": "Azure::MachineLearning::Mgmt::V2016_05_01_preview" // }, }, "azure_mgmt_managed_applications": { @@ -376,16 +372,14 @@ "https://raw.githubusercontent.com/Azure/azure-rest-api-specs/7aa3a5247895ba34d6cfec73e036bb66dc907d20/specification/monitor/resource-manager/microsoft.insights/2016-03-01/alertRules_API.json", "https://raw.githubusercontent.com/Azure/azure-rest-api-specs/7aa3a5247895ba34d6cfec73e036bb66dc907d20/specification/monitor/resource-manager/microsoft.insights/2016-03-01/logProfiles_API.json" ], - "namespace": "Azure::Monitor::Mgmt::V2016_03_01", - "package-version": "0.15.0" + "namespace": "Azure::Monitor::Mgmt::V2016_03_01" }, "azure_mgmt_monitor_2015_04_01": { "input-file": [ "https://raw.githubusercontent.com/Azure/azure-rest-api-specs/7aa3a5247895ba34d6cfec73e036bb66dc907d20/specification/monitor/resource-manager/microsoft.insights/2015-04-01/autoscale_API.json", "https://raw.githubusercontent.com/Azure/azure-rest-api-specs/7aa3a5247895ba34d6cfec73e036bb66dc907d20/specification/monitor/resource-manager/microsoft.insights/2015-04-01/operations_API.json" ], - "namespace": "Azure::Monitor::Mgmt::V2015_04_01", - "package-version": "0.15.0" + "namespace": "Azure::Monitor::Mgmt::V2015_04_01" } }, "azure_mgmt_network": { @@ -409,8 +403,7 @@ "https://raw.githubusercontent.com/Azure/azure-rest-api-specs/7aa3a5247895ba34d6cfec73e036bb66dc907d20/specification/network/resource-manager/Microsoft.Network/2017-09-01/virtualNetwork.json", "https://raw.githubusercontent.com/Azure/azure-rest-api-specs/7aa3a5247895ba34d6cfec73e036bb66dc907d20/specification/network/resource-manager/Microsoft.Network/2017-09-01/virtualNetworkGateway.json" ], - "namespace": "Azure::Network::Mgmt::V2017_09_01", - "package-version": "0.15.0" + "namespace": "Azure::Network::Mgmt::V2017_09_01" }, "azure_mgmt_network_2017_03_30": { "input-file": [ @@ -418,8 +411,7 @@ "https://raw.githubusercontent.com/Azure/azure-rest-api-specs/7aa3a5247895ba34d6cfec73e036bb66dc907d20/specification/network/resource-manager/Microsoft.Network/2017-09-01/vmssNetworkInterface.json", "https://raw.githubusercontent.com/Azure/azure-rest-api-specs/7aa3a5247895ba34d6cfec73e036bb66dc907d20/specification/network/resource-manager/Microsoft.Network/2017-09-01/vmssPublicIpAddress.json" ], - "namespace": "Azure::Network::Mgmt::V2017_03_30", - "package-version": "0.15.0" + "namespace": "Azure::Network::Mgmt::V2017_03_30" }, "azure_mgmt_network_2017_03_01":{ "input-file": [ @@ -439,19 +431,16 @@ "https://raw.githubusercontent.com/Azure/azure-rest-api-specs/7aa3a5247895ba34d6cfec73e036bb66dc907d20/specification/network/resource-manager/Microsoft.Network/2017-03-01/virtualNetwork.json", "https://raw.githubusercontent.com/Azure/azure-rest-api-specs/7aa3a5247895ba34d6cfec73e036bb66dc907d20/specification/network/resource-manager/Microsoft.Network/2017-03-01/virtualNetworkGateway.json" ], - "namespace": "Azure::Network::Mgmt::V2017_03_01", - "package-version": "0.15.0" + "namespace": "Azure::Network::Mgmt::V2017_03_01" }, "azure_mgmt_network_2016_12_01":{ "markdown": "https://raw.githubusercontent.com/Azure/azure-rest-api-specs/7aa3a5247895ba34d6cfec73e036bb66dc907d20/specification/network/resource-manager/readme.md", "namespace": "Azure::Network::Mgmt::V2016_12_01", - "tag": "package-2016-12" }, "azure_mgmt_network_2016_09_01":{ "markdown": "https://raw.githubusercontent.com/Azure/azure-rest-api-specs/7aa3a5247895ba34d6cfec73e036bb66dc907d20/specification/network/resource-manager/readme.md", "namespace": "Azure::Network::Mgmt::V2016_09_01", - "tag": "package-2016-09" }, "azure_mgmt_network_2016_06_01":{ @@ -485,8 +474,7 @@ "azure_mgmt_operational_insights": { "azure_mgmt_operational_insights_2015_11_01_preview": { "input-file": ["https://raw.githubusercontent.com/Azure/azure-rest-api-specs/7aa3a5247895ba34d6cfec73e036bb66dc907d20/specification/operationalinsights/resource-manager/Microsoft.OperationalInsights/2015-11-01-preview/OperationalInsights.json"], - "namespace": "Azure::OperationalInsights::Mgmt::V2015_11_01_preview", - "package-version": "0.15.0" + "namespace": "Azure::OperationalInsights::Mgmt::V2015_11_01_preview" }, "azure_mgmt_operational_insights_2015_03_20": { "markdown": "https://raw.githubusercontent.com/Azure/azure-rest-api-specs/7aa3a5247895ba34d6cfec73e036bb66dc907d20/specification/operationalinsights/resource-manager/readme.md", @@ -529,8 +517,7 @@ "azure_mgmt_recovery_services": { "azure_mgmt_recovery_services_2016_12_01": { "input-file": ["https://raw.githubusercontent.com/Azure/azure-rest-api-specs/7aa3a5247895ba34d6cfec73e036bb66dc907d20/specification/recoveryservices/resource-manager/Microsoft.RecoveryServices/2016-12-01/backup.json"], - "namespace": "Azure::RecoveryServices::Mgmt::V2016_12_01", - "package-version": "0.15.0" + "namespace": "Azure::RecoveryServices::Mgmt::V2016_12_01" }, "azure_mgmt_recovery_services_2016_06_01": { "markdown": "https://github.com/Azure/azure-rest-api-specs/blob/7aa3a5247895ba34d6cfec73e036bb66dc907d20/specification/recoveryservices/resource-manager/readme.md", @@ -541,18 +528,15 @@ "azure_mgmt_recovery_services_backup": { "azure_mgmt_recovery_services_backup_2017_07_01": { "input-file": ["https://raw.githubusercontent.com/Azure/azure-rest-api-specs/7aa3a5247895ba34d6cfec73e036bb66dc907d20/specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/2017-07-01/jobs.json"], - "namespace": "Azure::RecoveryServicesBackup::Mgmt::V2017_07_01", - "package-version": "0.15.0" + "namespace": "Azure::RecoveryServicesBackup::Mgmt::V2017_07_01" }, "azure_mgmt_recovery_services_backup_2016_12_01": { "input-file": ["https://raw.githubusercontent.com/Azure/azure-rest-api-specs/7aa3a5247895ba34d6cfec73e036bb66dc907d20/specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/2016-12-01/backupManagement.json"], - "namespace": "Azure::RecoveryServicesBackup::Mgmt::V2016_12_01", - "package-version": "0.15.0" + "namespace": "Azure::RecoveryServicesBackup::Mgmt::V2016_12_01" }, "azure_mgmt_recovery_services_backup_2016_08_10": { "input-file": ["https://raw.githubusercontent.com/Azure/azure-rest-api-specs/7aa3a5247895ba34d6cfec73e036bb66dc907d20/specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/2016-08-10/operations.json"], - "namespace": "Azure::RecoveryServicesBackup::Mgmt::V2016_08_10", - "package-version": "0.15.0" + "namespace": "Azure::RecoveryServicesBackup::Mgmt::V2016_08_10" }, "azure_mgmt_recovery_services_backup_2016_06_01": { "markdown": "https://github.com/Azure/azure-rest-api-specs/blob/7aa3a5247895ba34d6cfec73e036bb66dc907d20/specification/recoveryservicesbackup/resource-manager/readme.md", @@ -601,29 +585,25 @@ "input-file": [ "https://raw.githubusercontent.com/Azure/azure-rest-api-specs/7aa3a5247895ba34d6cfec73e036bb66dc907d20/specification/resources/resource-manager/Microsoft.Resources/2017-05-10/resources.json" ], - "namespace": "Azure::Resources::Mgmt::V2017_05_10", - "package-version": "0.15.0" + "namespace": "Azure::Resources::Mgmt::V2017_05_10" }, "azure_mgmt_resources_2016_09_01": { "input-file": [ "https://raw.githubusercontent.com/Azure/azure-rest-api-specs/7aa3a5247895ba34d6cfec73e036bb66dc907d20/specification/resources/resource-manager/Microsoft.Resources/2016-09-01/resources.json" ], - "namespace": "Azure::Resources::Mgmt::V2016_09_01", - "package-version": "0.15.0" + "namespace": "Azure::Resources::Mgmt::V2016_09_01" }, "azure_mgmt_resources_2016_07_01": { "input-file": [ "https://raw.githubusercontent.com/Azure/azure-rest-api-specs/7aa3a5247895ba34d6cfec73e036bb66dc907d20/specification/resources/resource-manager/Microsoft.Resources/2016-07-01/resources.json" ], - "namespace": "Azure::Resources::Mgmt::V2016_07_01", - "package-version": "0.15.0" + "namespace": "Azure::Resources::Mgmt::V2016_07_01" }, "azure_mgmt_resources_2016_02_01": { "input-file": [ "https://raw.githubusercontent.com/Azure/azure-rest-api-specs/7aa3a5247895ba34d6cfec73e036bb66dc907d20/specification/resources/resource-manager/Microsoft.Resources/2016-02-01/resources.json" ], - "namespace": "Azure::Resources::Mgmt::V2016_02_01", - "package-version": "0.15.0" + "namespace": "Azure::Resources::Mgmt::V2016_02_01" } }, "azure_mgmt_resources_management": { @@ -688,8 +668,7 @@ "input-file": [ "https://raw.githubusercontent.com/Azure/azure-rest-api-specs/7aa3a5247895ba34d6cfec73e036bb66dc907d20/specification/sql/resource-manager/Microsoft.Sql/2017-03-01-preview/cancelOperations.json" ], - "namespace": "Azure::SQL::Mgmt::V2017_03_01_preview", - "package-version": "0.15.0" + "namespace": "Azure::SQL::Mgmt::V2017_03_01_preview" } }, "azure_mgmt_stor_simple8000_series": { From 211ff6d8a6d0c762bf216e2acbc285ff6a9472bb Mon Sep 17 00:00:00 2001 From: Sarangan Rajamanickam Date: Mon, 6 Nov 2017 12:59:12 -0800 Subject: [PATCH 4/6] Removed ARM_VERSION file --- ARM_VERSION | 1 - 1 file changed, 1 deletion(-) delete mode 100644 ARM_VERSION diff --git a/ARM_VERSION b/ARM_VERSION deleted file mode 100644 index e815b861f0..0000000000 --- a/ARM_VERSION +++ /dev/null @@ -1 +0,0 @@ -0.15.1 From 8b777f0d3d7f2ba796ef3c8bfa553a3af8557801 Mon Sep 17 00:00:00 2001 From: Sarangan Rajamanickam Date: Mon, 6 Nov 2017 13:20:19 -0800 Subject: [PATCH 5/6] Additional changes --- GEM_VERSIONS | 116 +++++++++--------- .../individual/client_template.template | 10 -- 2 files changed, 58 insertions(+), 68 deletions(-) diff --git a/GEM_VERSIONS b/GEM_VERSIONS index e7336f69e3..a0b3e41687 100644 --- a/GEM_VERSIONS +++ b/GEM_VERSIONS @@ -1,64 +1,64 @@ { "rollup": { - "azure_sdk": "0.15.0" + "azure_sdk": "0.15.1" }, "management" : { - "azure_mgmt_analysis_services": "0.15.0", - "azure_mgmt_authorization": "0.15.0", - "azure_mgmt_automation": "0.15.0", - "azure_mgmt_batch": "0.15.0", - "azure_mgmt_billing": "0.15.0", - "azure_mgmt_cdn": "0.15.0", - "azure_mgmt_cognitive_services": "0.15.0", - "azure_mgmt_commerce": "0.15.0", - "azure_mgmt_compute": "0.15.0", - "azure_mgmt_consumption": "0.15.0", - "azure_mgmt_container_instance": "0.15.0", - "azure_mgmt_container_registry": "0.15.0", - "azure_mgmt_container_service": "0.15.0", - "azure_mgmt_customer_insights": "0.15.0", - "azure_mgmt_datalake_analytics": "0.15.0", - "azure_mgmt_datalake_store": "0.15.0", - "azure_mgmt_devtestlabs": "0.15.0", - "azure_mgmt_dns": "0.15.0", - "azure_mgmt_event_grid": "0.15.0", - "azure_mgmt_event_hub": "0.15.0", - "azure_mgmt_features": "0.15.0", - "azure_mgmt_graph": "0.15.0", - "azure_mgmt_iot_hub": "0.15.0", - "azure_mgmt_key_vault": "0.15.0", - "azure_mgmt_links": "0.15.0", - "azure_mgmt_locks": "0.15.0", - "azure_mgmt_logic": "0.15.0", - "azure_mgmt_machine_learning": "0.15.0", - "azure_mgmt_managed_applications": "0.15.0", - "azure_mgmt_marketplace_ordering": "0.15.0", - "azure_mgmt_media_services": "0.15.0", - "azure_mgmt_mobile_engagement": "0.15.0", - "azure_mgmt_monitor": "0.15.0", - "azure_mgmt_network": "0.15.0", - "azure_mgmt_notification_hubs": "0.15.0", - "azure_mgmt_operational_insights": "0.15.0", - "azure_mgmt_policy": "0.15.0", - "azure_mgmt_powerbi_embedded": "0.15.0", - "azure_mgmt_recovery_services": "0.15.0", - "azure_mgmt_recovery_services_backup": "0.15.0", - "azure_mgmt_recovery_services_site_recovery": "0.15.0", - "azure_mgmt_redis": "0.15.0", - "azure_mgmt_relay": "0.15.0", - "azure_mgmt_resources": "0.15.0", - "azure_mgmt_resources_management": "0.15.0", - "azure_mgmt_scheduler": "0.15.0", - "azure_mgmt_search": "0.15.0", - "azure_mgmt_server_management": "0.15.0", - "azure_mgmt_service_bus": "0.15.0", - "azure_mgmt_service_fabric": "0.15.0", - "azure_mgmt_sql": "0.15.0", - "azure_mgmt_stor_simple8000_series": "0.15.0", - "azure_mgmt_storage": "0.15.0", - "azure_mgmt_stream_analytics": "0.15.0", - "azure_mgmt_subscriptions": "0.15.0", - "azure_mgmt_traffic_manager": "0.15.0", - "azure_mgmt_web": "0.15.0" + "azure_mgmt_analysis_services": "0.15.1", + "azure_mgmt_authorization": "0.15.1", + "azure_mgmt_automation": "0.15.1", + "azure_mgmt_batch": "0.15.1", + "azure_mgmt_billing": "0.15.1", + "azure_mgmt_cdn": "0.15.1", + "azure_mgmt_cognitive_services": "0.15.1", + "azure_mgmt_commerce": "0.15.1", + "azure_mgmt_compute": "0.15.1", + "azure_mgmt_consumption": "0.15.1", + "azure_mgmt_container_instance": "0.15.1", + "azure_mgmt_container_registry": "0.15.1", + "azure_mgmt_container_service": "0.15.1", + "azure_mgmt_customer_insights": "0.15.1", + "azure_mgmt_datalake_analytics": "0.15.1", + "azure_mgmt_datalake_store": "0.15.1", + "azure_mgmt_devtestlabs": "0.15.1", + "azure_mgmt_dns": "0.15.1", + "azure_mgmt_event_grid": "0.15.1", + "azure_mgmt_event_hub": "0.15.1", + "azure_mgmt_features": "0.15.1", + "azure_mgmt_graph": "0.15.1", + "azure_mgmt_iot_hub": "0.15.1", + "azure_mgmt_key_vault": "0.15.1", + "azure_mgmt_links": "0.15.1", + "azure_mgmt_locks": "0.15.1", + "azure_mgmt_logic": "0.15.1", + "azure_mgmt_machine_learning": "0.15.1", + "azure_mgmt_managed_applications": "0.15.1", + "azure_mgmt_marketplace_ordering": "0.15.1", + "azure_mgmt_media_services": "0.15.1", + "azure_mgmt_mobile_engagement": "0.15.1", + "azure_mgmt_monitor": "0.15.1", + "azure_mgmt_network": "0.15.1", + "azure_mgmt_notification_hubs": "0.15.1", + "azure_mgmt_operational_insights": "0.15.1", + "azure_mgmt_policy": "0.15.1", + "azure_mgmt_powerbi_embedded": "0.15.1", + "azure_mgmt_recovery_services": "0.15.1", + "azure_mgmt_recovery_services_backup": "0.15.1", + "azure_mgmt_recovery_services_site_recovery": "0.15.1", + "azure_mgmt_redis": "0.15.1", + "azure_mgmt_relay": "0.15.1", + "azure_mgmt_resources": "0.15.1", + "azure_mgmt_resources_management": "0.15.1", + "azure_mgmt_scheduler": "0.15.1", + "azure_mgmt_search": "0.15.1", + "azure_mgmt_server_management": "0.15.1", + "azure_mgmt_service_bus": "0.15.1", + "azure_mgmt_service_fabric": "0.15.1", + "azure_mgmt_sql": "0.15.1", + "azure_mgmt_stor_simple8000_series": "0.15.1", + "azure_mgmt_storage": "0.15.1", + "azure_mgmt_stream_analytics": "0.15.1", + "azure_mgmt_subscriptions": "0.15.1", + "azure_mgmt_traffic_manager": "0.15.1", + "azure_mgmt_web": "0.15.1" } } diff --git a/generators/profilegen/src/resources/templates/individual/client_template.template b/generators/profilegen/src/resources/templates/individual/client_template.template index cce52675b7..870ff74023 100644 --- a/generators/profilegen/src/resources/templates/individual/client_template.template +++ b/generators/profilegen/src/resources/templates/individual/client_template.template @@ -21,15 +21,5 @@ module Azure::<%= @class_name %>::Profiles::<%= @profile_name %>::Mgmt super(options) end - def credentials - if @credentials.nil? - self.active_directory_settings ||= Azure::ARM::Default.active_directory_settings - - @credentials = MsRest::TokenCredentials.new( - MsRestAzure::ApplicationTokenProvider.new( - self.tenant_id, self.client_id, self.client_secret, self.active_directory_settings)) - end - @credentials - end end end From ce81b8a75f95a7642be1bb7434254c9d8d05a34b Mon Sep 17 00:00:00 2001 From: Sarangan Rajamanickam Date: Mon, 6 Nov 2017 13:40:25 -0800 Subject: [PATCH 6/6] Added one more comprehensive task --- Rakefile | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/Rakefile b/Rakefile index 3e8d021a0a..9da7fce875 100644 --- a/Rakefile +++ b/Rakefile @@ -82,7 +82,7 @@ namespace :arm do end desc 'Regen code for each sdk with all its api versions' - task :regen => :clean_generated do + task :regen_sdk_versions => :clean_generated do json = get_config_file each_gem do |dir| # dir corresponds to each azure_mgmt_* folder if REGEN_EXCLUDES.include?(dir.to_s) @@ -232,6 +232,11 @@ namespace :arm do task :regen_all_profiles => [:regen_rollup_profile, :regen_individual_profiles] do puts 'Regenerated all profiles' end + + desc 'Regen all versions of sdk and profiles' + task :regen => [:regen_sdk_versions, :regen_all_profiles] do + puts 'Regenerated all versions of sdk and profiles' + end end Rake::Task['arm:regen_rollup_profile'].enhance do @@ -242,7 +247,7 @@ Rake::Task['arm:regen_individual_profiles'].enhance do Rake::Task['arm:regen_individual_require_files'].invoke end -Rake::Task['arm:regen'].enhance do +Rake::Task['arm:regen_sdk_versions'].enhance do Rake::Task['arm:regen_individual_require_files'].invoke end